认识CSS样式(第三部分-盒子模型)
2016-10-04 13:58
323 查看
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>盒子边框</title> <style type="text/css"> div{border-bottom-color:#F00; border-bottom-width:10px; border-bottom-style:dotted; border-left-color:#F00; border-left-style:dotted;; border-left-width:10px; border-right-color:#F00; border-right-style:dotted;; border-right-width:10px; border-top-color:#F00; border-top-style:dotted;; border-top-width:10px;} /*简写*/ .first{ border-bottom:2px solid #F00; border-top:2px solid #F00; border-left:2px solid #F00; border-right:2px solid #F00; margin:10px;/*外边界,上下左右宽度相等*/ padding:15px;/*内填充,上下左右宽度相等*/} .second{ border-bottom:2px solid #F00; border-top:2px solid #F00; border-left:2px solid #F00; border-right:2px solid #F00; padding:15px; margin:10px;} </style> </head> <body> <div class="first"> <h1>勇气</h1> <p>三年级的时候,我还是一个胆小如鼠的小女孩,上课从来不敢回答老师的问题,生怕回答错了,老师会批评我。学校举办的活动我也很少参加。</p> <p>到了三年级下学期,我们班上了一节公开课。老师提了一个很简单的问题。很多人都举手回答。甚至有很多成绩比我差的,我看了一下周围,就我没举手。</p> </div> <div class="second"> <ul> <li>水果 <ul> <li>苹果</li> <li>荔枝</li> <li>香蕉</li> </ul> </li> <li>蔬菜 <ul> <li>白菜</li> <li>胡萝卜</li> <li>西红柿</li> </ul> </li> </ul> </div> </body> </html>
相关文章推荐
- Django tutorial(3) 【翻译】编写第一个Django app,第三部分——玩转模型层的API
- CSS样式中的盒子模型
- CSS样式,操作表格属性,操作边框属性,盒子模型,CSS定位
- 深入认识盒子模型 display:inline-block BFC 和haslayout !
- MVC音乐商店 - 第三部分:视图和视图模型
- 认识CSS的盒子模型
- Asp.net Provider模型第三部分
- 认识html标签(第三部分)
- css样式--盒子模型
- 认知的概率模型(ESSLLI教程) - 第三部分译文 - 推理模式
- 2015.7.8 第三课 课程重点(css:认识css样式)
- (4)认识标签(第三部分)
- Asp.net Provider模型第三部分(转)
- 第三部分:初步认识Twisted
- (2)css编程(四部分:入门,语法,盒子模型,定位)
- css样式基础之盒子模型
- CSS样式盒子模型
- 第三部分 网络编程 (第3章 服务器模型)
- Linux 学习笔记 -- 第三部分 学习 shell 与 shell script -- 第11章 认识与学习 bash
- 第3天(就业班) css样式的引入与选择、css样式、盒子模型、定位、变量、运算符、控制流程语句