css3 - IE678兼容last-child的方法 請教
問題描述
看了很多相關(guān)信息。但是感覺沒有最好的方法解決last-child 最后一個右邊li:last-child a { border-right: 1px solid #0084c9; }的問題。
<ul class='main-menu'> <li><a href='http://www.aoyou183.cn/wenda/6096.html#' id='current'>1</a></li> <li><a href='http://www.aoyou183.cn/wenda/6096.html#'>2</a></li> <li><a href='http://www.aoyou183.cn/wenda/6096.html#'>3</a></li> <li><a href='http://www.aoyou183.cn/wenda/6096.html#'>4</a></li> <li><a href='http://www.aoyou183.cn/wenda/6096.html#'>5</a></li></ul>li a{border-left: 1px solid #0084c9; display:block;}li:last-child a { border-right: 1px solid #0084c9; }
請各位前段大神指點一下,感激不敬!
問題解答
回答1:1> 引入讓IE6-IE8擁有IE9+,Chrome等瀏覽器特性的js庫ieBetter.jsie9.js
2> 放棄last-child 給最后一個li添加單獨的class
回答2:有IE6/IE7/IE8瀏覽器支持CSS3屬性的js嗎
相關(guān)文章:
1. javascript - webpack1和webpack2有什么區(qū)別?2. thinkPHP5中獲取數(shù)據(jù)庫數(shù)據(jù)后默認(rèn)選中下拉框的值,傳遞到后臺消失不見。有圖有代碼,希望有人幫忙3. django - Python error: [Errno 99] Cannot assign requested address4. 求救一下,用新版的phpstudy,數(shù)據(jù)庫過段時間會消失是什么情況?5. python小白,關(guān)于函數(shù)問題6. javascript - vscode alt+shift+f 格式化js代碼,通不過eslint的代碼風(fēng)格檢查怎么辦。。。7. python小白 關(guān)于類里面的方法獲取變量失敗的問題8. Python2中code.co_kwonlyargcount的等效寫法9. [python2]local variable referenced before assignment問題10. python - vscode 如何在控制臺輸入
