【发布时间】:2012-11-09 10:00:24
【问题描述】:
我在 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()<=$count]">
<xsl:text> </xsl:text>
</xsl:for-each>
这段代码在 Mozilla 中运行良好,但在 IE 中,我的专栏分成两行而不是自动布局。
【问题讨论】:
-
把
white-space:nowrap;放在上面吗? -
对不起,没有得到您的宝贵意见,您能解释一下吗
-
-1 糟糕的问题、错误的拼写和错误的标签!
-
请将
width=74%;更改为width: 74%;您在样式标签中工作,因此您必须使用 css 语法
标签: html css xml internet-explorer xslt