twitter-bootstrap 在引导程序列表项中制作标题?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25639016/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 21:27:11  来源:igfitidea点击:

Making heading in bootstrap list item?

csstwitter-bootstrap

提问by Miomir Dancevic

I am trying to make something like this in bootstrap 3

我正在尝试在 bootstrap 3 中做这样的事情

enter image description here

在此处输入图片说明

This is what i have for now

这就是我现在所拥有的

<ul class="list-group">
  <li class="list-group-item">
    Cras justo odio
  </li>
  <li class="list-group-item">
    Dapibus ac facilisis in
  </li>
  <li class="list-group-item">
    Morbi leo risus
  </li>
</ul>

回答by Stan

please check the jsfiddle example,

请检查jsfiddle示例,

from the image you've provided: css:

从您提供的图像:css:

.borderless .list-group-item {
    border: none;
}

html:

html:

<ul class="list-group borderless">
  <li class="nav-header disabled"><a>Header A</a></li>
  <li class="list-group-item">
    Cras justo odio
  </li>
  <li class="list-group-item">
    Dapibus ac facilisis in
  </li>
  <li class="list-group-item">
    Morbi leo risus
  </li>
</ul>

you can check it here

你可以在这里查看

if you will have some questions please don't hesitate to ask, or comment the answer

如果你有一些问题,请不要犹豫,问,或评论答案