Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/73.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/40.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 在Internet explorer中将列剪切成两行_Html_Css_Xml_Internet Explorer_Xslt - Fatal编程技术网

Html 在Internet explorer中将列剪切成两行

Html 在Internet explorer中将列剪切成两行,html,css,xml,internet-explorer,xslt,Html,Css,Xml,Internet Explorer,Xslt,我在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 !=''">

我在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中,我的专栏分成两行,而不是自动布局

有价值的评论展开:

我假设您的列是一个或多个表列。您不希望其中的文本在两行上吗

添加css规则:

td {
  white-space:nowrap;
}

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


首先,请尝试理解一些基本的HTML和CSS。你可以在谷歌上找到很好的资源,比如这个:

put
white space:nowrap关于它?对不起,我没有得到你有价值的评论,你能再解释一下吗?1个糟糕的问题,拼写错误和错误的标签!请更改
宽度=74%至<代码>宽度:74%你在一个样式标签中工作,所以你必须使用css语法是它的tabl列问题,我可以给liek这个td{white space:nowrap;}谢谢。我对这个程序非常陌生。链接是非常基本和良好的初学者谢谢