如何消除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.leifengta.com.cn/wenda/5904.html' alt='導(dǎo)航圖'> <ul><li class='check_on'><a href='http://www.leifengta.com.cn/wenda/5904.html#K12_1'>咨詢老師</a></li><li><a href='http://www.leifengta.com.cn/wenda/5904.html#K12_1'>1</a></li><li><a href='http://www.leifengta.com.cn/wenda/5904.html#K12_1'>2</a></li><li><a href='http://www.leifengta.com.cn/wenda/5904.html#K12_1'>3</a></li><li><a href='http://www.leifengta.com.cn/wenda/5904.html#K12_1'>4</a></li><li><a href='http://www.leifengta.com.cn/wenda/5904.html#K12_1'>5</a></li><li><a href='http://www.leifengta.com.cn/wenda/5904.html#K12_1'>6</a></li><li><a href='http://www.leifengta.com.cn/wenda/5904.html#K12_1'>7</a></li><li><a href='http://www.leifengta.com.cn/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. boot2docker無(wú)法啟動(dòng)2. docker-compose中volumes的問(wèn)題3. docker容器呢SSH為什么連不通呢?4. 關(guān)docker hub上有些鏡像的tag被標(biāo)記““This image has vulnerabilities””5. java - SSH框架中寫(xiě)分頁(yè)時(shí)service層中不能注入分頁(yè)類(lèi)6. docker安裝后出現(xiàn)Cannot connect to the Docker daemon.7. node.js - antdesign怎么集合react-redux對(duì)input控件進(jìn)行初始化賦值8. 關(guān)于docker下的nginx壓力測(cè)試9. nignx - docker內(nèi)nginx 80端口被占用10. 老師,按tab鍵不起作用怎么回事

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