Home > Web Front-end > HTML Tutorial > The problem that the bottom border of the button disappears and does not appear in IE6_html/css_WEB-ITnose

The problem that the bottom border of the button disappears and does not appear in IE6_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:56:33
Original
1099 people have browsed it

最近网站做改版,又发现一个ie6奇葩的问题,就一个很普通带边框的按钮,但在ie6中下边框不显示,ie7没有测试不知道是不是也不显示,其他浏览器正常

代码和预览效果如下:

<style>body{ font-size:12px; font-family:tahoma,arial,verdana,\5b8b\4f53,sans-serif; color:#666;}.btn{ display:inline-block; line-height:23px; padding:0 10px; border:solid 1px red; text-decoration:none; vertical-align:middle;}</style><a class="btn" href="#">一个按钮</a>
Copy after login

 

这里先说下自己的解决办法。通过测试发现多种办法可以解决此问题

1、body字体声明改为arial默认font-family:arial,tahoma,verdana,\5b8b\4f53,sans-serif

2、去掉按钮的vertical-align值

3、把按钮block、浮动等

测试猜想应该是字体和vertical-align:middle引起的问题???

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template