Bootstrap列表组堆叠

    xiaoxiao2022-07-12  147

    列表组堆叠

    Bootstrap3列表组中的每个元素,都可以是任何 HTML 内容,因此你可以根据需要,自定义列表组的内容。自定义内容时,通过 .list-group-item-heading 定义列表项的标题,通过 .list-group-item-text 定义列表项的内容。如:

    <div class="list-group">  <a href="#" class="list-group-item active">    <h4 class="list-group-item-heading">List group item heading</h4>    <p class="list-group-item-text">...</p>  </a></div>

    效果如图 3‑93所示:

    图3-93 自定义列表组内容

    关于作者

    歪脖先生,十五年以上软件开发经验,酷爱Web开发,精通 HTML、CSS、JavaScript、jQuery、JSON、Python、Less、Bootstrap等,著有《HTML宝典》、《揭秘CSS》、《Less简明教程》、《JSON教程》、《Bootstrap2用户指南》、《Bootstrap3实用教程》,并全部在 GitHub 上开源。

    最新回复(0)