-1

我在 IE 中使用 tablr

<table style="width=74%;table-layout:auto" border="0">
<xsl:for-each select="webpage/param">    
<tr>
 <xsl:if test="@type !='i'">  
    <td class="rowYellow">
    <xsl:if test="@indent !=''">  

        <!-- Generate the appropriate number of indentation -->
        <xsl:variable name="count" select="@indent"/>
        <xsl:for-each select="(//*)[position()&lt;=$count]">
            <xsl:text>&#xA0;</xsl:text>
        </xsl:for-each> 

这段代码在 Mozilla 中运行良好,但在 IE 中,我的专栏分为两行,而不是自动布局。

4

2 回答 2

1

您要做的是为表格单元格设置一些样式。您已经这样做了,但是代码中有一些基本错误。

首先,请尝试了解一些基本的 HTML 和 CSS。你会在谷歌上找到很好的资源,比如这个:http ://www.w3.org/Style/Examples/011/firstcss.en.html

于 2012-11-09T10:17:05.957 回答
0

有价值的评论扩展:

你的专栏,我假设是一个或多个表格列。您不希望其中的文本位于 2 行上吗?

添加css规则:

td {
  white-space:nowrap;
}
于 2012-11-09T10:04:50.483 回答