Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/85.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/38.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
Html IE7集团?_Html_Css - Fatal编程技术网

Html IE7集团?

Html IE7集团?,html,css,Html,Css,试图将这两列的宽度分别设置为50%,但在IE7中忽略了colgroup,有人能提出解决此问题的方法吗 <table id="briefEquationBuilder" class="fullWidthTable"> <colgroup> <col span="1" align="left" style="width:50%"> <col span="1" style="background-col

试图将这两列的宽度分别设置为50%,但在IE7中忽略了colgroup,有人能提出解决此问题的方法吗

 <table id="briefEquationBuilder" class="fullWidthTable">
        <colgroup>
          <col span="1" align="left" style="width:50%">
          <col span="1" style="background-color:yellow">
        </colgroup>


您可以这样设置:

<table id="briefEquationBuilder" class="fullWidthTable">
  <colgroup class="yours">
    <col/><col/>
  </colgroup>
  <tr>
    <td colspan="2">copy</td>
  </tr>
</table>

复制
但是……为什么不使用td并添加类呢

colgroup对此几乎没有支持基础:


我只是想修复一个bug,而不是埋头于更多的工作。如果浏览器支持不足,正如@Riskbreaker所指出的,那么只有两个选项:(1)更改HTML(为受支持的内容)。(2) 不要试图完全支持IE7。
colgroup
标记本身没有效果,那么您如何推断它被忽略了?你应该解释你的期望以及它是如何失败的,你应该公开所有相关的CSS代码——首先,包括一个完整的、自包含的文档来演示这个问题,并解释如何看待它。