1 二、CSS边框空白 2 padding-top:10px; /*上边框留空白*/ 3 padding-right:10px; /*右边框留空白*/ 4 padding-bottom:10px; /*下边框留空白*/ 5 padding-left:10px; /*左边框留空白 6 三、CSS符号属性: 7 list-style-type:disc; /*实心圆形符号*/ 8 list-style-type:circle; /*空心圆形符号*/ 9 list-style-type:square; /*实心方形符号*/ 10 list-style-image:url(/dot.gif); /*图片式符号*/ 11 list-style-position: outside; /*凸排*/ 12 list-style-position:inside; /*缩进*/ 13 四、CSS背景样式: 14 background-color:#F5E2EC; /*背景颜色*/ 15 background:transparent; /*透视背景*/ 16 background-image : url(/image/bg.gif); /*背景图片*/ 17 background-attachment : fixed; /*浮水印固定背景*/ 18 background-repeat : repeat; /*重复排列-网页默认*/ 19 background-repeat : no-repeat; /*不重复排列*/ 20 background-repeat : repeat-x; /*在x轴重复排列*/ 21 background-repeat : repeat-y; /*在y轴重复排列*/ 22 指定背景位置 23 background-position : 90% 90%; /*背景图片x与y轴的位置*/ 24 background-position : top; /*向上对齐*/ 25 background-position : buttom; /*向下对齐*/ 26 background-position : left; /*向左对齐*/ 27 background-position : right; /*向右对齐*/ 28 background-position : center; /*居中对齐*/ 29 五、CSS连接属性: 30 a /*所有超链接*/ 31 a:link /*超链接文字格式*/ 32 a:visited /*浏览过的链接文字格式*/ 33 a:active /*按下链接的格式*/ 34 a:hover /*鼠标转到链接*/ 35 鼠标光标样式: 36 链接手指 CURSOR: hand 37 十字体cursor:crosshair 38 箭头朝下cursor:s-resize 39 十字箭头 cursor:move 40 箭头朝右 cursor:move 41 加一问号 cursor:help 42 箭头朝左cursor:w-resize 43 箭头朝上cursor:n-resize 44 箭头朝右上cursor:ne-resize 45 箭头朝左上cursor:nw-resize 46 文字I型 cursor:text 47 箭头斜右下cursor:se-resize 48 箭头斜左下cursor:sw-resize
边框背景 位置 如下
猜你喜欢
转载自www.cnblogs.com/haozi123/p/10117384.html
今日推荐
周排行