Bootstrap3 排版-页面主体】的更多相关文章

Bootstrap 将全局 font-size 设置为 14px,line-height 设置为 1.428.这些属性直接赋予 元素和所有段落元素.另外,<p> (段落)元素还被设置了等于 1/2 行高(即 10px)的底部外边距(margin). Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur…
转:http://blog.csdn.net/lgm97/article/details/6409217 <!-- =====  页面滚动区域开始  ============================================================ --> <!-- 这两个div 用来创建页面的主体的滚动区域,应该保持原样如果你想把ribbon放在顶部 these two div id's are used to setup the main scrolling p…
创建CSS文件如下: @charset "utf-8"; /* CSS Document */ *{ margin:0px; padding:0px; border:0px; } #box{ width:1100px; height:760px; margin:auto; } #hen { width:1100px; height:160px; background-color:#936; } #zuo{ width:250px; height:500px; margin-top:10…
1.定义网页背景颜色:<body bgcolor="red"> <body bgcolor="#0fc"> 2.设置背景图片: <body background="图片地址"> 为了保证浏览器载入网页的速度,建议不要使用尺寸过大的图片 3.设置文字颜色: <body text="颜色"> 4.设置文字链接属性: <body link="颜色">  …
无序列表 排列顺序无关紧要的一列元素. <ul> <li>...</li> </ul> 有序列表 顺序至关重要的一组元素. <ol> <li>...</li> </ol> 无样式列表 移除了默认的 list-style 样式和左侧外边距的一组元素(只针对直接子元素).这是针对直接子元素的,也就是说,你需要对所有嵌套的列表都添加这个类才能具有同样的样式. <ul class="list-unsty…
在你的文档中引用其他来源的内容. 默认样式的引用 将任何 HTML 元素包裹在 <blockquote> 中即可表现为引用样式.对于直接引用,我们建议用 <p> 标签. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. <blockquote> <p>Lorem ipsum dolor sit amet, consectetur adip…
让联系信息以最接近日常使用的格式呈现.在每行结尾添加 可以保留需要的样式. Twitter, Inc. 795 Folsom Ave, Suite 600 San Francisco, CA 94107 P: (123) 456-7890 Full Name first.last@example.com <address> <strong>Twitter, Inc.</strong><br> 795 Folsom Ave, Suite 600<br&g…
当鼠标悬停在缩写和缩写词上时就会显示完整内容,Bootstrap 实现了对 HTML 的 <abbr> 元素的增强样式.缩略语元素带有 title 属性,外观表现为带有较浅的虚线框,鼠标移至上面时会变成带有"问号"的指针.如想看完整的内容可把鼠标悬停在缩略语上, 但需要包含 title 属性. 基本缩略语 如想看完整的内容可把鼠标悬停在缩略语上, 但需要为 <abbr> 元素设置 title属性. attr <abbr title="attrib…
通过这几个类可以改变文本的大小写. <p class="text-lowercase">Lowercased text.</p> <p class="text-uppercase">Uppercased text.</p> <p class="text-capitalize">Capitalized text.</p> -–下面有个"顶"字,你懂得O(∩_…
通过文本对齐类,可以简单方便的将文字重新对齐. Left aligned text. Center aligned text. Right aligned text. Justified text. No wrap text. <p class="text-left">Left aligned text.</p> <p class="text-center">Center aligned text.</p> <p…