9.11

A是特殊的,如果想要改变A的颜色,必须直接从A中设置,从A的父级不可以

文本的样式

1 颜色:color

2 文本的对齐方式:text-align   (left 左  right 右  center 居中  justify 俩端对齐)

3 文本修式: text-decoration    (none  无  underline 下划线  overline 上划线        line-through)

4 文本缩进 : text-indent  

字体的样式

1 颜色:color

2 大小:font-size  

3 形状:font-style  (normal  正常   oblique 倾斜  inherit 继承  )

4 加粗:font-weight (bold  bolder 粗   light 细   也可以用数字进行表示   400为正常  大于400 为粗 小于400为细  数字后边不需要填写单位)

5 字形:font-family  (楷体 )

背景(background)

颜色  color

背景图片路径  background:url

repeat  平铺     no-repeat不平铺      repeat-x

background-size  背景大小      auto   自适应

background-position   背景位置    向上为正  向下为负

(数字   百分比    right  left   top   bottom  center)

border   1px(粗细)   soild (实线)   red(颜色) 

border-radius   圆角(数字   百分比)

 

转载于:https://www.cnblogs.com/yang08/p/9627808.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值