【问题标题】:Blank space on table that can't be removed (Bootstrap)表格上无法删除的空白区域(引导程序)
【发布时间】:2015-06-25 21:37:53
【问题描述】:

我在表格中有一个无法删除的空格。我有一个很长的字符串,但表格没有伸展。使用:

@Html.Label (item.Description, new {style = @" word-wrap : break-word; width: 10%; "})

直到那里一切正常,有空格的地方应该有字符串,但现在它是空的!

图片链接查看发生了什么:http://gyazo.com/a1ba58140e8f94e2e4f93db388586877

【问题讨论】:

  • 您需要发布更多的 html/css/javascript。看起来您将描述的宽度设置为 10%,所以这将是一个问题。
  • 是的,这就是问题所在,表格不接受 %,我将宽度更改为 px,现在可以使用了,谢谢

标签: css twitter-bootstrap razor


【解决方案1】:

试试white-space: pre-line;的风格

@Html.Label (item.Description, new {style = @" word-wrap : break-word; width: 10%; white-space: pre-line;"})

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-03-21
    • 1970-01-01
    • 2019-06-08
    • 1970-01-01
    • 2023-03-15
    • 1970-01-01
    • 2023-03-30
    • 2015-04-05
    相关资源
    最近更新 更多