CSS样式
feiyang431
向技术达人看齐
展开
-
web标准化设计:常用的CSS命名规则
常用的CSS命名规则 头:header 内容:content/container 尾:footer 导航:nav 侧栏:sidebar 栏目:column 页面外围控制整体布局宽度:wrapper 左右中:left right center 登录条:loginbar 标志:logo 广告:banner 页面主体:main 热点:hot 新闻:news 下载转载 2007-04-07 15:40:00 · 727 阅读 · 0 评论 -
css手册(一)Background 背景
设置背景颜色 body {background-color: yellow}设置一张图片做为背景 background-image:url(/articleimg/2006/07/3744/bgdesert.jpg)垂直重复背景图片 background-image: url(/articleimg/2006/07/3744/bgdesert.jpg);background-rep原创 2007-04-10 15:23:00 · 610 阅读 · 0 评论 -
css手册(二) Text 文字
设置文字颜色 h1 {color: #00ff00} h2 {color: #dda0dd} p {color: rgb(0,0,255)}指定字符间的距离 h1 {letter-spacing: -3px}原创 2007-04-10 16:12:00 · 451 阅读 · 0 评论 -
css手册(三) Font 字体
设置文字的字体 h3 {font-family: times} p {font-family: courier} p.sansserif {font-family: sans-serif} 设置文字的大小 h1 {font-size: 150%}原创 2007-04-10 16:41:00 · 555 阅读 · 0 评论 -
CSS手册(四)Border 边框
设置四边框的样式 p.dotted {border-style: dotted} p.dashed {border-style: dashed} p.solid {border-style: solid}原创 2007-04-11 10:21:00 · 652 阅读 · 0 评论 -
CSS手册(五)Margin外补丁(边距)
Margin外补丁(边距) p.leftmargin {margin-left: 2cm} p.rightmargin {margin-right: 8cm} p.topmargin {margin-top: 5cm} p.bottommargin {margin-bottom: 2cm}Padding内补丁(填充) td {padding-left: 2cm} This is a ta原创 2007-04-11 10:32:00 · 748 阅读 · 0 评论 -
css手册(六)List 列表
无序列表的不同项目标号 ul.disc {list-style-type: disc}ul.circle {list-style-type: circle}ul.square {list-style-type: square}ul.none {list-style-type: none}有序的列表的不同项目标号 ol.lroman {list-style-type: lower-roman}原创 2007-04-11 10:52:00 · 669 阅读 · 0 评论 -
css手册(七)Classification 分类
怎样显示一个元素 p {display: inline}div {display: none}一个简单的浮动属性使用This is some text. This is some text. This is some text.一个有着边框个边距的图象浮动到一个段落的右边 float:right;border:1px dotted black;margin:0px 0px 15px 2原创 2007-04-11 11:21:00 · 570 阅读 · 0 评论