![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
zmf19901117
这个作者很懒,什么都没留下…
展开
-
css中 nth-child 和 nth-of-type 的区别
css中 nth-child 和 nth-of-type 的区别在css3中有两个新的选择器可以选择父元素下对应的子元素,一个是:nth-child 另一个是:nth-of-type。 但是它们到底有什么区别呢?其实区别很简单::nth-of-type为什么要叫:nth-of-type?因为它是以"type"来区分的。也就是说:ele:nth-of-type(n)是指父元素下第n个ele元素,而ele:nth-child(n)是指父元素下第n个元素且这个元素为ele,若不是,则选择失败。文字未免听起转载 2020-07-08 13:17:58 · 234 阅读 · 0 评论 -
banner自适应屏幕代码
本文为参考的网上的他人的笔记Banner自适应屏幕代码<html><head> <title>Title</title> <style> .bannerbox { width:100%; position:relative; overflow:hidden; height:200px; }原创 2020-06-30 17:43:52 · 801 阅读 · 0 评论