您的位置:首页 > Web前端 > BootStrap

bootstrap笔记-布局

2015-10-13 14:35 525 查看
1.通过文本对齐类,可以简单方便的将文字重新对齐。

<p class="text-left">Left aligned text.</p>
<p class="text-center">Center aligned text.</p>
<p class="text-right">Right aligned text.</p>
<p class="text-justify">Justified text.</p>
<p class="text-nowrap">No wrap text.</p>

2.在Bootstrap中ul和li都是前面带点儿的(带默认样式的),如果不需要可以
<ul class="list-unstyled">
加class =‘[code]list-unstyled

但是
list-unstyled
只会对‘直接子元素’起作用,也就是说,你需要对所有嵌套的列表都添加这个类才能具有同样的样式。

[/code]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: