0
点赞
收藏
分享

微信扫一扫

浅学css

爱情锦囊 2022-04-14 阅读 66
css

1.使用

(1)给标签添加style属性

(2)使用link链接<lin rel=""href="../'>

(3)<style type="text/css>

@import "../css"

2.选择器

{属性1:值1;

属性2:值2;}

(1)标签名选择器 p body hr(设置宽度有单位px background-color)

font-family(设置字体) font-size(px分辨率em) font-style(字体风格) font-weight(粗细bold)

(2)id选择器 #(不能重复)

(3)class选择器.(可以重复)

(4)通配符* margin padding(内边界)

文本样式属性

letter-spacing字符间距 word-spacing字母间距line-height行高text-transform(capaitalize首字母大写

uppercase大写lowercase小写text-decoration下划线(none underline下划线 overline上划线line-through删除线text-indent(px)缩进text-shadow阴影(四个值px px px rgb)text-overflow(clip clipsis ellipsis)overflow hidden

举报

相关推荐

浅学MongoDB

浅学redis

浅学 Pytorch

浅学lombok

浅学PHP(4)

浅学JAVA 集合

Linux浅学笔记03

浅学 “ Java多线程 ”

0 条评论