Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/81.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 允许td内容在没有colspan的情况下进入下一列_Html_Css - Fatal编程技术网

Html 允许td内容在没有colspan的情况下进入下一列

Html 允许td内容在没有colspan的情况下进入下一列,html,css,Html,Css,我有下表: <table width="260px" border="1"> <tr> <td width="30%"> <span>this is a foobar text that shoud create a multiline text </span> </td> <td width="70%">Pas vraiment</td> &l

我有下表:

<table width="260px" border="1">
  <tr>
    <td width="30%">
      <span>this is a foobar text that shoud create a multiline text
      </span>
    </td>
    <td width="70%">Pas vraiment</td>
  </tr>
</table>

这是一个foobar文本,应该创建多行文本
帕斯弗里蒙特酒店
问题是我想允许
span
标记的内容进入下一列,而不使用
colspan

我该怎么做


谢谢。

这就是你要找的吗


我只是让每一个单元格都内联显示。此时它实际上不是一个表,但它会允许文本溢出…

这没有意义-为什么不使用
colspan
属性?第二个
td
的内容会怎样?我无法编辑css表(太长了,无法解释)。嗯,两列上的span内容应该超过(z-index)任何其他内容。colspan就是为此而设计的!为什么你不能用它?colspan不是css。。。对我来说似乎是xss攻击。@TheBens好吧,我正试图帮助你,也许你不能使用colspan的原因不是一个好的原因,而你给出的原因将是我在尝试xss攻击时给出的原因。好吧,我还是有礼貌的,如果我看起来不礼貌的话,很抱歉。