Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css <;样式=显示:内联块;高度:8px;宽度:8px&燃气轮机</a>;IE6:只有带“的正确尺寸”&;nbsp&引用;?_Css_Internet Explorer_Internet Explorer 6_Height_Width - Fatal编程技术网

Css <;样式=显示:内联块;高度:8px;宽度:8px&燃气轮机</a>;IE6:只有带“的正确尺寸”&;nbsp&引用;?

Css <;样式=显示:内联块;高度:8px;宽度:8px&燃气轮机</a>;IE6:只有带“的正确尺寸”&;nbsp&引用;?,css,internet-explorer,internet-explorer-6,height,width,Css,Internet Explorer,Internet Explorer 6,Height,Width,Internet Explorer(6.0):显示以下代码的不同大小:为什么 <a style=display:inline-block;height:8px></a> <a style=display:inline-block;height:8px>&nbsp;</a> Chromium和FF(我的首选浏览器)两次都显示正确的大小,但在工作中我不得不使用IE6.0 有什么方法可以防止这种行为吗?显示:内联块在IE6中对空元素不起作用

Internet Explorer(6.0):显示以下代码的不同大小:为什么

<a style=display:inline-block;height:8px></a>
<a style=display:inline-block;height:8px>&nbsp;</a>

Chromium和FF(我的首选浏览器)两次都显示正确的大小,但在工作中我不得不使用IE6.0


有什么方法可以防止这种行为吗?

显示:内联块在IE6中对空元素不起作用-因此高度元素被忽略,因为它需要显示标签。

添加显示:块如何;对于所有的锚?我不明白为什么一开始标签会是空的?@Chris:创建一些基于css的图表,带有可点击的图表点。@amosrivera:但这不会使它保持内联。老实说,我认为在IE6中,除了使用父标签或在标签中插入某种形式的内容之外,你无法解决这个问题。您能使用display:block,然后使用float使它们保持内联吗?很难说不把整个事情看成一个整体!@SimeVidas: