CSS 网页样式大全.doc

上传人:hs****ma 文档编号:543326143 上传时间:2023-08-23 格式:DOC 页数:6 大小:41.50KB
返回 下载 相关 举报
CSS 网页样式大全.doc_第1页
第1页 / 共6页
CSS 网页样式大全.doc_第2页
第2页 / 共6页
CSS 网页样式大全.doc_第3页
第3页 / 共6页
CSS 网页样式大全.doc_第4页
第4页 / 共6页
CSS 网页样式大全.doc_第5页
第5页 / 共6页
点击查看更多>>
资源描述

《CSS 网页样式大全.doc》由会员分享,可在线阅读,更多相关《CSS 网页样式大全.doc(6页珍藏版)》请在金锄头文库上搜索。

1、CSS 网页样式大全字体属性:(font)大小 font-size: x-large;(特大) xx-small;(极小) 一般中文用不到,只要用数值就可以,单位:PX、PD样式 font-style: oblique;(偏斜体) italic;(斜体) normal;(正常)行高 line-height: normal;(正常) 单位:PX、PD、EM粗细 font-weight: bold;(粗体) lighter;(细体) normal;(正常)变体 font-variant: small-caps;(小型大写字母) normal;(正常)大小写 text-transform: capi

2、talize;(首字母大写) uppercase;(大写) lowercase;(小写) none;(无)修饰 text-decoration: underline;(下划线) overline;(上划线) line-through;(删除线) blink;(闪烁)常用字体: (font-family)Courier New, Courier, monospace, Times New Roman, Times, serif, Arial, Helvetica, sans-serif, Verdana背景属性: (background)色彩background-color: #FFFFFF;图

3、片background-image: url();重复background-repeat: no-repeat;滚动background-attachment: fixed;(固定) scroll;(滚动)位置background-position: left(水平) top(垂直);简写方法 background:#000 url(.) repeat fixed left top;区块属性: (Block)字间距letter-spacing: normal; 数值对齐text-align: justify;(两端对齐) left;(左对齐) right;(右对齐) center;(居中)缩进

4、text-indent: 数值px;垂直对齐vertical-align: baseline;(基线) sub;(下标) super;(下标) top; text-top; middle; bottom; text-bottom;词间距word-spacing: normal; 数值空格white-space: pre;(保留) nowrap;(不换行)显示display:block;(块) inline;(内嵌) list-item;(列表项) run-in;(追加部分) compact;(紧凑) marker;(标记) table; inline-table; table-raw-grou

5、p; table-header-group; table-footer-group; table-raw; table-column-group; table-column; table-cell; table-caption;(表格标题)方框属性: (Box)width:; height:; float:; clear:both; margin:; padding:; 顺序:上右下左边框属性: (Border)border-style: dotted;(点线) dashed;(虚线) solid; double;(双线) groove;(槽线) ridge;(脊状) inset;(凹陷) o

6、utset;border-width:; 边框宽度border-color:#;简写方法border:width style color;列表属性: (List-style)类型list-style-type: disc;(圆点) circle;(圆圈) square;(方块) decimal;(数字) lower-roman;(小罗码数字) upper-roman; lower-alpha; upper-alpha;位置list-style-position: outside;(外) inside;图像list-style-image: url(.);定位属性: (Position)Posi

7、tion: absolute; relative; static;visibility: inherit; visible; hidden;overflow: visible; hidden; scroll; auto;clip: rect(12px,auto,12px,auto) (裁切)css属性代码大全一 CSS文字属性:color : #999999;font-family : 宋体,sans-serif;font-size : 9pt;font-style:itelic;font-variant:small-caps;letter-spacing : 1pt;line-height

8、: 200%;font-weight:bold;vertical-align:sub;vertical-align:super;text-decoration:line-through;text-decoration:overline;text-decoration:underline;text-decoration:none;text-transform : capitalize;text-transform : uppercase;text-transform : lowercase;text-align:right;text-align:left;text-align:center;te

9、xt-align:justify;vertical-align属性vertical-align:top;vertical-align:bottom;vertical-align:middle;vertical-align:text-top;vertical-align:text-bottom;二、CSS边框空白padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px;list-style-type:decimal;list-style-type:lower-roman;list-style-type:up

10、per-roman;list-style-type:lower-alpha;list-style-type:upper-alpha;list-style-type:disc;list-style-type:circle;list-style-type:square;list-style-image:url(/dot.gif);list-style-position:outside;list-style-position:inside;四、CSS背景样式:background-color:#F5E2EC;background:transparent;background-image : url(

11、/image/bg.gif);background-attachment : fixed;background-repeat : repeat;background-repeat : no-repeat;background-repeat : repeat-x;background-repeat : repeat-y;指定背景位置background-position : 90% 90%;background-position : top;background-position : buttom;background-position : left;background-position :

12、right;background-position : center;五、CSS连接属性:aa:linka:visiteda:activea:hover鼠标光标样式:链接手指 CURSOR: hand十字体 cursor:crosshair箭头朝下 cursor:s-resize十字箭头 cursor:move箭头朝右 cursor:move加一问号 cursor:help箭头朝左 cursor:w-resize箭头朝上 cursor:n-resize箭头朝右上 cursor:ne-resize箭头朝左上 cursor:nw-resize文字I型 cursor:text箭头斜右下 cursor

13、:se-resize箭头斜左下 cursor:sw-resize漏斗 cursor:wait光标图案(IE6)p cursor:url(光标文件名.cur),text;六、CSS框线一览表:border-top : 1px solid #6699cc;border-bottom : 1px solid #6699cc;border-left : 1px solid #6699cc;border-right : 1px solid #6699cc;以上是建议书写方式,但也可以使用常规的方式 如下:border-top-color : #369border-top-width :1pxborder

14、-top-style : solid其他框线样式soliddotteddoublegrooveridgeinsetoutset七、CSS表单运用:文字方块按钮复选框选择钮多行文字方块下拉式菜单 选项1选项2八、CSS边界样式:margin-top:10px;margin-right:10px;margin-bottom:10px;margin-left:10px;CSS 属性: 字体样式(Font Style)序号 中文说明 标记语法1 字体样式 font:font-style font-variant font-weight font-size font-family2 字体类型 font-

15、family:字体1,字体2,字体3,.3 字体大小 font-size:数值|inherit| medium| large| larger| x-large| xx-large| small| smaller| x-small| xx-small4 字体风格 font-style:inherit|italic|normal|oblique5 字体粗细font-weight:100-900|bold|bolder|lighter|normal;6 字体颜色color:数值;7 阴影颜色 text-shadow:16位色值8 字体行高line-height:数值|inherit|normal;9 字 间 距letter-spacing:数值|inherit|normal10 单词间距 word-spacing:数值|inherit|normal11 字体变形 font-variant:inherit|normal|small-cps 12

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 生活休闲 > 科普知识

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号