如何消除css3斜切角引起的毛邊問題
問題描述
<!DOCTYPE html><html lang='en'><head> <meta charset='UTF-8'> <title>Title</title></head><body><style>.slide_bar { width: 180px; position: absolute; z-index: 99; right: 30px; top: 700px;}.slide_bar ul li a { display: block; width: 185px; height: 36px; line-height: 36px; text-align: center; font-size: 18px; color: #fff;}.slide_bar ul li:hover a { color: #0d1656;}.slide_bar ul li:nth-child(odd) { background: #588efd; background: linear-gradient(-70deg, transparent 12px, #588efd 0) right, linear-gradient(70deg, transparent 12px, #588efd 0) left; background-size: 50% 100%; background-repeat: no-repeat;}.slide_bar ul li:nth-child(even) { background: #52b8ff; background: linear-gradient(-110deg, transparent 12px, #52b8ff 0) right, linear-gradient(110deg, transparent 12px, #52b8ff 0) left; background-size: 50% 100%; background-repeat: no-repeat;}</style><p class='slide_bar'> <img src='http://www.cgvv.com.cn/wenda/5904.html' alt='導航圖'> <ul><li class='check_on'><a href='http://www.cgvv.com.cn/wenda/5904.html#K12_1'>咨詢老師</a></li><li><a href='http://www.cgvv.com.cn/wenda/5904.html#K12_1'>1</a></li><li><a href='http://www.cgvv.com.cn/wenda/5904.html#K12_1'>2</a></li><li><a href='http://www.cgvv.com.cn/wenda/5904.html#K12_1'>3</a></li><li><a href='http://www.cgvv.com.cn/wenda/5904.html#K12_1'>4</a></li><li><a href='http://www.cgvv.com.cn/wenda/5904.html#K12_1'>5</a></li><li><a href='http://www.cgvv.com.cn/wenda/5904.html#K12_1'>6</a></li><li><a href='http://www.cgvv.com.cn/wenda/5904.html#K12_1'>7</a></li><li><a href='http://www.cgvv.com.cn/wenda/5904.html#K12_1'><i class='icon icon_top'></i>TOP</a></li> </ul></p></body></html>
使用css3的線性漸變實現(xiàn)多邊形邊框,斜切那部分會有毛邊,不是很美觀,請問怎么解決?css3 club斜切角文章
問題解答
回答1:猜測跟角度有關(guān),這個應該是瀏覽器對小數(shù)的精度的控制造成的
這個切出來是無法修復的
相關(guān)文章:
1. mysql - 在不允許改動數(shù)據(jù)表的情況下,如何優(yōu)化以varchar格式存儲的時間的比較?2. css - chrome下a標簽嵌套img 顯示會多個小箭頭?3. css3 - 純css實現(xiàn)點擊特效4. docker網(wǎng)絡(luò)端口映射,沒有方便點的操作方法么?5. java中返回一個對象,和輸出對像的值,意義在哪兒6. mysql 為什么主鍵 id 和 pid 都市索引, id > 10 走索引 time > 10 不走索引?7. vim - docker中新的ubuntu12.04鏡像,運行vi提示,找不到命名.8. javascript - 有適合開發(fā)手機端Html5網(wǎng)頁小游戲的前端框架嗎?9. javascript - Img.complete和img.onload判斷圖片加載完成有什么區(qū)別?10. 推薦好用mysql管理工具?for mac和pc
