ie6浏览器下产生双倍间隔边距bug解决代码
2019年11月30日
作者:佚名
ie6浏览器下发生双倍隔断边距bug计划代码方法:
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html;charset=gb2312" /> <title>双倍距离边距经管</title> <style type="text/css"> body {margin:0} div {float:left;margin-left:10px;width:300px;height:200px;border:1px solid red} </style> </head> <body> <div> <a href="#"> 网站尺度思空见贯标题大全双倍距离边距网站标准思空见贯标题大全网站标准常见标题大全web标准思空见贯问, 题大全站点规范常见标题问题大全web规范思空见贯标题问题大全站点尺度常见标题问题大全站点规范思空见贯题目大全网站标准常见标题 大全web标准常见题目大全站点尺度常见问题大全web尺度思空见贯标题问题大全站点尺度常见标题大全网站尺度思空见贯问题大全</a> </div> </body> </html>
浮动后本来外边距10px,但IE评释为20px,整治门径是加上display:inline
div {float:left;margin-left:10px;width:300px;height:200px;border:1px solid red}
问鼎display:inline
div {float:left;margin-left:10px;width:300px;height:200px;border:1px solid red;display:inline}
方案margin发作双倍距离方法。