作业帮 > 英语 > 作业

CSS中.menu-function li:not(:last-child) span

来源:学生作业帮 编辑:搜狗做题网作业帮 分类:英语作业 时间:2024/07/15 02:54:35
CSS中.menu-function li:not(:last-child) span
还有这句 .menu-function li a:before,.drop-down button[type="button"]:before
CSS中.menu-function li:not(:last-child) span
.menu-function li:not(:last-child) span?
.menu-function为class标签 下面的li 不等于not(:last-child) 最后一个 下面的span标签添加CSS样式
.menu-function li a:before,.drop-down button[type="button"]:before?
//before伪元素在元素之前添加内容 逗号分隔样式 逗号代表【或】
.menu-function为class标签 下面的li 下面的a标签 元素之前添加内容 后面有个逗号,代表或 .drop-down class的标签 下面的button 属性为[type="button"]:before元素之前添加内容
再问: li:not(:last-child) :last-child 这个是什么意思?是类选择器吗?
再答: 与Jquery写法相似 :last-child 这都属于CSS 伪类 等于说css帮你封装好的属性