大佬教程收集整理的这篇文章主要介绍了jquery – :last-child在IE8中不起作用,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
请在这里找到小提琴. http://jsfiddle.net/archanabr05/yokLbocx/
问题是:我想在标题单元格之间创建一个白色边框,但避免使用最后一个标题单元格.
所以我用过:
CSS:
th:last-child { border-right:none; }
我知道这在IE8中不起作用,我们有什么解决方案可以解决它,jquery对我也没关系.
我没有固定的列.因此我不能基于固定数量的单元格进行样式.
.table{ border-spacing: 0; border:2px solid #e5e5e5; border-collapse: collapse; } tr th{ } th{ padding:30px; BACkground:#e5e5e5; border-left: 2px solid #fff; } th:first-child{ border-left: none; } td { border-right: 2px solid #e5e5e5!important; border-top: 1px solid #e5e5e5!important; padding: 30px; BACkground:#fff }
<table class="table"> <tr> <th>Header 1</th> <th>Header 2</th> <th>Header 3</th> </tr> <tr> <td>Content 1</td> <td>Content 2</td> <td>Content 3</td> </tr> <tr> <td>Yes</td> <td>Yes</td> <td>No</td> </tr> </table>
以上是大佬教程为你收集整理的jquery – :last-child在IE8中不起作用全部内容,希望文章能够帮你解决jquery – :last-child在IE8中不起作用所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。