Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/32.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 Internet Explorer忽略显示:内联_Css_Html Table_Inline - Fatal编程技术网

Css Internet Explorer忽略显示:内联

Css Internet Explorer忽略显示:内联,css,html-table,inline,Css,Html Table,Inline,我有一些Sharepoint生成的HTML标记,它不是您见过的最好的,不能干扰标记,但必须通过CSS对其进行样式设置 标记大致如下所示: <div id="searchbox"> <table> <tr> <td> <table class="mstable"> <tr> <td><input></input></td> <td><select><

我有一些Sharepoint生成的HTML标记,它不是您见过的最好的,不能干扰标记,但必须通过CSS对其进行样式设置

标记大致如下所示:

<div id="searchbox">
<table>
<tr>
<td>
<table class="mstable">
<tr>
<td><input></input></td>
<td><select><option></option><option></option></select></td>
</tr>
</table>
</table>
<div id="fontsize">
<a href=""/>
<a href=""/>
</div>
</div>
我想做的是把fontsize div放在桌子旁边。当前,在表之后有一个中断,fontsize id位于它下面。

我将display:inline设置为searchbox和fontsize div的所有表子体,在Firefox中我得到了所需的结果,但在IE(所有版本8及以下)中它会忽略它

我知道我的解决方案是删除这些表并使其仅为div,但我不知道我是否有这种可能性


编辑:我通过将float:left设置为table和fontsize div,并为表格本身设置一个像素宽度,以限制其扩展到整个searchbox div来解决问题。

尝试将直接位于“searchbox”div之后的表格向左浮动:

<div id="searchbox">
<table style="float: left;">

这应该可以为您做到:

在ie7工作+

编辑

<table>
<tr>    // here is 
<td>    // the problem
<table class="mstable">
<tr>
<td><input></input></td>
<td><select><option></option><option></option></select></td>
</tr>
</table>
</table>

//这是
//问题
与:


如果没有:

您可以在此处包含您的css吗?在原始帖子中添加的css代码:)无法为我的网站复制它。我将宽度设置为元素和float:left,但#fontsize仍位于表格下方(这次在左下角对齐)
<table>
<tr>    // here is 
<td>    // the problem
<table class="mstable">
<tr>
<td><input></input></td>
<td><select><option></option><option></option></select></td>
</tr>
</table>
</table>