如何消除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.lshqa.cn/wenda/5904.html' alt='導(dǎo)航圖'> <ul><li class='check_on'><a href='http://www.lshqa.cn/wenda/5904.html#K12_1'>咨詢老師</a></li><li><a href='http://www.lshqa.cn/wenda/5904.html#K12_1'>1</a></li><li><a href='http://www.lshqa.cn/wenda/5904.html#K12_1'>2</a></li><li><a href='http://www.lshqa.cn/wenda/5904.html#K12_1'>3</a></li><li><a href='http://www.lshqa.cn/wenda/5904.html#K12_1'>4</a></li><li><a href='http://www.lshqa.cn/wenda/5904.html#K12_1'>5</a></li><li><a href='http://www.lshqa.cn/wenda/5904.html#K12_1'>6</a></li><li><a href='http://www.lshqa.cn/wenda/5904.html#K12_1'>7</a></li><li><a href='http://www.lshqa.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),這個應(yīng)該是瀏覽器對小數(shù)的精度的控制造成的
這個切出來是無法修復(fù)的
相關(guān)文章:
1. javascript - node.js promise沒用2. android 如何實現(xiàn)如圖中的鍵盤上的公式及edittext的內(nèi)容展示呢3. c++ - 如何正確的使用QWebEngineView?4. golang - 用IDE看docker源碼時的小問題5. javascript - js 寫一個正則 提取文本中的數(shù)據(jù)6. 算法 - python 給定一個正整數(shù)a和一個包含任意個正整數(shù)的 列表 b,求所有<=a 的加法組合7. yii2中restful配置好后在nginx下報404錯誤8. java - 我在用Struts2上傳文件時,報以下錯誤怎么回事?9. PHP注冊功能10. php - 注冊驗證郵箱失效后操作問題
