CSS中两个class之间有空格和没空格的区别
发布日期:2021-05-07 20:57:09 浏览次数:28 分类:精选文章

本文共 195 字,大约阅读时间需要 1 分钟。

一、有空格

有空格表示后代选择器,选择的是.example内的.children

.example .children {   	color: orange;}

children

二、没有空格

没有空格表示.example.children在一个元素上,该元素必须同时又这两个class才生效

.example.children {   	color: orange;}

example

上一篇:Mysql错误: ERROR 1205: Lock wait timeout exceeded解决办法
下一篇:CSS display:flex 布局

发表评论

最新留言

留言是一种美德,欢迎回访!
[***.207.175.100]2025年04月04日 16时26分53秒