如何消除css3斜切角引起的毛邊問(wèn)題
問(wèn)題描述
<!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://m.b3g6.com/wenda/5904.html' alt='導(dǎo)航圖'> <ul><li class='check_on'><a href='http://m.b3g6.com/wenda/5904.html#K12_1'>咨詢老師</a></li><li><a href='http://m.b3g6.com/wenda/5904.html#K12_1'>1</a></li><li><a href='http://m.b3g6.com/wenda/5904.html#K12_1'>2</a></li><li><a href='http://m.b3g6.com/wenda/5904.html#K12_1'>3</a></li><li><a href='http://m.b3g6.com/wenda/5904.html#K12_1'>4</a></li><li><a href='http://m.b3g6.com/wenda/5904.html#K12_1'>5</a></li><li><a href='http://m.b3g6.com/wenda/5904.html#K12_1'>6</a></li><li><a href='http://m.b3g6.com/wenda/5904.html#K12_1'>7</a></li><li><a href='http://m.b3g6.com/wenda/5904.html#K12_1'><i class='icon icon_top'></i>TOP</a></li> </ul></p></body></html>
使用css3的線性漸變實(shí)現(xiàn)多邊形邊框,斜切那部分會(huì)有毛邊,不是很美觀,請(qǐng)問(wèn)怎么解決?css3 club斜切角文章
問(wèn)題解答
回答1:猜測(cè)跟角度有關(guān),這個(gè)應(yīng)該是瀏覽器對(duì)小數(shù)的精度的控制造成的
這個(gè)切出來(lái)是無(wú)法修復(fù)的
相關(guān)文章:
1. javascript - immutable配合react提升性能?2. javascript - sublime快鍵鍵問(wèn)題3. javascript - nodejs關(guān)于進(jìn)程間發(fā)送句柄的一點(diǎn)疑問(wèn)4. Apache 已經(jīng)把網(wǎng)站根目錄的改為allow from all了,但是服務(wù)器還是不能訪問(wèn)?5. 實(shí)現(xiàn)bing搜索工具urlAPI提交6. javascript - 移動(dòng)端上不能實(shí)現(xiàn)拖拽布局嗎?7. vue.js - Vue 如何像Angular.js watch 一樣監(jiān)聽(tīng)數(shù)據(jù)變化8. phpstudy8.1支持win11系統(tǒng)嗎?9. 配置Apache時(shí),添加對(duì)PHP的支持時(shí)語(yǔ)法錯(cuò)誤10. css - 寫(xiě)頁(yè)面遇到個(gè)布局問(wèn)題,求大佬們幫解答,在線等,急!~

網(wǎng)公網(wǎng)安備