摘要:
伪对象选择器 在元素前面或者元素后面插入一个不存在的元素(伪元素) ①在元素内部的最前面插入 ::before{ content: ""; } ②在元素内部的最后插入 ::after{ content: ""; } 阅读全文
posted @ 2021-03-08 16:45
紫豹豹
阅读(92)
评论(0)
推荐(0)
摘要:
CSS3新增的伪类选择器 :first-child 表示第一个子元素是... :last-child :nth-child(numberloddleven/倍数) :first-of-type 表示第一个子元素 :last-of-type :nth-of-type (numberloddleven/ 阅读全文
posted @ 2021-03-08 16:34
紫豹豹
阅读(114)
评论(0)
推荐(0)
摘要:
overflow用于设置内容溢出元素框怎么处理 1.visibze: 默认值 2.hidden: 溢出部分隐藏 3.scroll: 显示滚动条 4.auto: 自动,当有内容溢出,显示滚动条;没有内容溢出,不显示滚动条 使一行文字溢出用省略号显示 white-space: nowrap; //文字在 阅读全文
posted @ 2021-03-08 16:27
紫豹豹
阅读(1025)
评论(0)
推荐(0)

浙公网安备 33010602011771号