CSS样式大全

@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
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值