CSS样式大全

来源:互联网 发布:linux 域控制器 编辑:程序博客网 时间:2024/05/19 19:42
@charset "gb2312";/**/.ceshi{    font-size:15px;/* 字体大小 */    font-style:normal;/*字体样式 oblique(偏斜体) italic;(斜体) normal;(正常)*/    line-height: 20px;/*字行高*/    font-weight: bold;/*字体粗细*/    text-decoration: underline;/* (下划线) overline;(上划线) line-through;(删除线) blink;(闪烁) */        font-family:Microsoft YaHei ;/*  宋体:SimSun 黑体:SimHei    微软雅黑:Microsoft YaHei*/    background-color: #FFFFFF;    background:url(images/xxx.jpg) no-repeat center center;/*引用背景图片 no-repeat不重复  repeat-x横向重复 repeat-y纵向重复  center 居中 left 靠左...*/    display:none; /* none隐藏,block块状默认100%width,inline-block根据字符大小定义块状宽度 */    letter-spacing:1px;/* 字间距 */    text-align: justify; /*   justify两端对齐left;(左对齐) right;(右对齐) center;(居中) */    text-indent:2em;/*一般为em单位,当前字符大小的两倍*/    display:block;/* (块) inline;(内嵌) list-item;(列表项) run-in;(追加部分) compact;(紧凑) marker;(标记) table; inline-table; */    float:left; /* 靠左 */    margin:1px 2px 3px 2px;  /* 外边距 顺序:上右下左 */    padding:1px 2px 3px 2px;  /* 内边距 顺序:上右下左 */    border:1px solid #ccc; /* 边 border:width style color  宽度   solid直线/dashed 虚线   颜色 */    border-style: dotted;/* (点线) dashed;(虚线) solid; double;(双线) groove;(槽线) ridge;(脊状) inset;(凹陷) outset; */    Position: absolute; /* relative;    absolute     生成绝对定位的元素,相对于 static 定位以外的第一个父元素进行定位。元素的位置通过 "left", "top", "right" 以及 "bottom" 属性进行规定。    fixed     生成绝对定位的元素,相对于浏览器窗口进行定位。元素的位置通过 "left", "top", "right" 以及 "bottom" 属性进行规定。    relative     生成相对定位的元素,相对于其正常位置进行定位。因此,"left:20" 会向元素的 LEFT 位置添加 20 像素。*/    list-style-type: disc;/*列表属性 disc (圆点)    circle;(圆圈)     square;(方块)    decimal;(数字)    lower-roman;(小罗码数字) upper-roman; */    overflow:hidden;/* 溢出隐藏     auto(溢出出现下拉条) */}a /*所有超链接*/a:link /*超链接文字格式*/a:visited /*浏览过的链接文字格式*/a:active /*按下链接的格式*/a:hover /*鼠标转到链接*/


0 0
原创粉丝点击