如何消除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://www.gepszalag.com/wenda/5904.html' alt='導(dǎo)航圖'> <ul><li class='check_on'><a href='http://www.gepszalag.com/wenda/5904.html#K12_1'>咨詢(xún)老師</a></li><li><a href='http://www.gepszalag.com/wenda/5904.html#K12_1'>1</a></li><li><a href='http://www.gepszalag.com/wenda/5904.html#K12_1'>2</a></li><li><a href='http://www.gepszalag.com/wenda/5904.html#K12_1'>3</a></li><li><a href='http://www.gepszalag.com/wenda/5904.html#K12_1'>4</a></li><li><a href='http://www.gepszalag.com/wenda/5904.html#K12_1'>5</a></li><li><a href='http://www.gepszalag.com/wenda/5904.html#K12_1'>6</a></li><li><a href='http://www.gepszalag.com/wenda/5904.html#K12_1'>7</a></li><li><a href='http://www.gepszalag.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 - 手機(jī)點(diǎn)擊input時(shí),button會(huì)被頂上去?求解決!!!2. 百度地圖api - Android 百度地圖 集成了定位,導(dǎo)航 相互的jar包有沖突?3. python - django 按日歸檔統(tǒng)計(jì)訂單求解4. 網(wǎng)頁(yè)爬蟲(chóng) - python爬蟲(chóng)用BeautifulSoup爬取<s>元素并寫(xiě)入字典,但某些div下沒(méi)有這一元素,導(dǎo)致自動(dòng)寫(xiě)入下一條,如何解決?5. javascript - vue-mint UI - icon在哪里有文檔?6. HTML5禁止img預(yù)覽該怎么解決?7. javascript - vscode alt+shift+f 格式化js代碼,通不過(guò)eslint的代碼風(fēng)格檢查怎么辦。。。8. html5 - 表單無(wú)法屏蔽自動(dòng)填充 autocomplete=off9. html - 請(qǐng)教一個(gè)前端css問(wèn)題。10. 請(qǐng)教一個(gè)python字符串處理的問(wèn)題?
