IE8下显示图片时多出一个边框而Chrome或Firefox下却没有
浏览:20日期:2024-07-15
出现兼容性问题的代码很简单: 复制代码代码如下: div a href='https://www.6hehe.com/dnjc/index.html'img src='https://www.6hehe.com/dnjc/images/logo.png'//a /div 其中logo的样式定义: 复制代码代码如下: #logo { margin-left:108px; margin-top:3px; display:inline-block; float:left; } 显示效果就是Chrome、FireFox、IE10以上都没有问题,但是IE8就多出了一个蓝色边框(有时为黑色的)。 解决时只需要指定img的边框样式即可,如下: 复制代码代码如下: img{ border-style:none; } 同时兼容其它版本的浏览器。
相关文章:
热门推荐
- intellij idea和eclipse比较
- 1.如何在FreeBSD上用PHP实现在线添加FTP用户
- 2.Linux下安PHP,APACHE,MYSQL,PERL方法 4
- 3.Fedora 8 JDK Eclipse Myeclispe安装配置
- 4.Golang压缩Jpeg图片和PNG图片的操作
- 5.Data Blocks and Freelists (from ixora)
- 6.浅析NIO系列之TCP
- 7.Solaris如何增加用户?(groupadd,useradd)
- 8.Linux下安PHP,APACHE,MYSQL,PERL方法2
- 9.css中IE判断语句 if !IE
- 10.IE6下css设置容器高度的BUG不能小于某个值