Home >Web Front-end >HTML Tutorial >A black line appears on the lower border of IE7 and IE10_html/css_WEB-ITnose
<table width="98%" class="tableborder" cellpadding="0" cellspacing="0" align="center">.tableborder{ border-color:#87cbff; border-width:1px; border-style:solid; border-collapse:collapse; border-right: #e4e9ef 1px solid; border-top: #e4e9ef 1px solid; border-left: #e4e9ef 1px solid; border-bottom: #e4e9ef 1px solid; }
Just this code does not see a black line under IE7. Check carefully to see if there are other styles in effect.
Why is this code so cumbersome to write?
<style type="text/css"> .tableborder{ border:1px solid #e4e9ef; border-collapse:collapse; width:98%; margin:auto; } </style></head><body> <table class="tableborder"> <tr><td>hello world</td><td>Fuck GFW</td></tr> </table> </body>
First set border to none and see if there are any black lines in IE7 and IE10. You'd better post a picture because I can't reproduce it.
The effect is as shown above:
The effect is as shown above:
It is estimated that the table is covered by other styles. You can use firebug to check.
Solved
.tableborder{ border-color:#87cbff; border-width:1px; border-style:solid; border-collapse:collapse; border-right: #e4e9ef 1px solid; border-top: #e4e9ef 1px solid; border-left: #e4e9ef 1px solid; border-bottom: #e4e9ef 1px solid; border:1px solid #e4e9ef!important; }
Following the original poster’s method, the black border under IE10 was removed. The only problem is that the list border is gone. What should I do?