06 2021 档案

摘要:我们在hover选择器后面又使用 类选择器,表示鼠标移动到父标签时,子标签具有什么属性。 例如: 表示鼠标移动到父类的location位置时,子标签具有的属性,这个hover一定是给父元素的hover。 阅读全文
posted @ 2021-06-21 19:32 洛飞 阅读(143) 评论(0) 推荐(0) 编辑
摘要:什么是高度塌陷? 父元素高度自适应,子元素float之后,造成父元素高度为0,称为高度塌陷。他的产生条件就是子元素浮动如图如图:.top-bar-wrapper是.location和.shortcut的父类。.location和.shortcut中设置了浮动。而父类.top-bar-wrapper中 阅读全文
posted @ 2021-06-18 16:27 洛飞 阅读(422) 评论(0) 推荐(0) 编辑
摘要:知道first-child、last-child、nth-child(n)、nth-child(2n+1)、nth-child(2n-1)、first-of-type、last-of-type、nth-of-type nth-child 另一个是:nth-of-type都可以选择父元素下面的子元素。 阅读全文
posted @ 2021-06-03 17:19 洛飞 阅读(49) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示