How to force Twitter Bootstrap .dl-horizontal DT content to wrap instead of truncate?

后端 未结 4 1411
被撕碎了的回忆
被撕碎了的回忆 2021-02-02 10:04

Bootstrap has great horizontal definition list styling, but I want the DT content to wrap, not be truncated.

I know on their base.css page they say:

4条回答
  •  南方客
    南方客 (楼主)
    2021-02-02 10:20

    you can comment out white-space: nowrap; from .dl-horizontal dt block if you want to wrap content in all the dt

    if you want to wrap content for a single dt then add inline style='white-space: normal;' to that specific dt

提交回复
热议问题