![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
css
栗子hl
前端栗子成长ing
展开
-
:last-child和:last-type-of
一.last-child遇到使用:last-child无效的情况,主要是样式写的不对。el:last-child 的匹配规则是:查找 el 选择器匹配元素的所有同级元素(siblings)。 在同级元素中查找最后一个元素。 检验最后一个元素是否与选择器 el 匹配。1. 错误示例<div class = "content"> <div cla...原创 2019-12-26 19:16:48 · 1444 阅读 · 0 评论 -
dispaly属性
参考: http://www.cnblogs.com/jdonson/archive/2011/06/10/2077932.html#undefinedinline : 不可以设置元素的宽度和高度。inline-block : 可以设置元素的宽度和高度。block : 可以设置元素的宽度和高度原创 2017-07-10 20:22:08 · 399 阅读 · 0 评论