文本背景列表的属性

font-size  字体大小  font-size属性值:单位可以是px,pt,em等 12pt=16px  1em=16px  浏览器默认是16px,设计图常用字号是12px

    16px=12pt=1em 默认大小为16px 字体样式【微软雅黑】

    color  颜色  属性值:颜色的英文/16进制【#FFFFFF】/rgb【255, 255, 255】

    font-family  字体样式  属性值:楷体

    font-weight  加粗   font-weight:bolder(更粗的)/bold(加粗)/normal(常规)

    font-weight:100-900; 100-500不加粗   600-900加粗

    font-style  斜体  font-style:italic(斜体字)/oblique(倾斜的文字)/normal(常规显示);

    text-align  文本水平对齐  

    text-align:left; 水平靠左

    text-align:right;水平靠右

    text-align:center;水平居中

    text-align:justify;水平2端对齐,但是只对多行起作用。

    line-height  行高 line-height的数据=height的数据,可以实现单行文本垂直居中

    text-decoration 文本修饰  text-decoration:none没有下划线

                              text-decoration:underline有下划线

                              text-decoration:overline上划线

                              text-decoration:line-through删除线

    text-indent  首行缩进  text-indent可以取负值 text-indent属性支队第一行起作用

    letter-spacing:  字间距  控制文本和文本之间的距离 中文常用

    word-spacing: 字间距  控制文本和文本之间的距离  英文常用

  

  background-repeat:no-repeat不平铺;

                                 repeat平铺

                                 repeat-x横向平铺

                                 repeat-y纵向平铺 

           background-repeat:no-repeat ;

           background-position: left top;

           background-position: left;

           background-position: -5em; 

           background-position: 100px;

           background-attachment: fixed; 图片的固定 

           background-attachment: fixed;

           background-color: hsla(0,0%,100%,0.8); 图片的透明度 范围为0-1

           background-size: 100% 100%; 

       

           none 没有

           circle 空心圆

           disc 实心圆

           square 实心正方形

            list-style-image:url("img/icon.jpg")

            list-style-position:inside[在列表里面]/outside[在列表外面 默认]

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值