![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
css
武林盟主~
没有伞的孩子,必须努力奔跑!
展开
-
纯CSS实现轮播图的效果
纯css实现轮播图的效果@TOC <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /原创 2021-12-09 18:47:12 · 262 阅读 · 0 评论 -
h5页面-弹出黑色遮罩层实现
h5页面-弹出黑色遮罩层实现 alertLayer() { const div = document.createElement("div"); div.style.position = "fixed"; div.style.top = "0"; div.style.bottom = "0"; div.style.zIndex = "100001"; div.style.background = "rgba(0,0,0,0.64)"; div.st原创 2021-08-16 20:21:50 · 397 阅读 · 0 评论 -
css中:last-child和:last-of-type两种伪类的区别
(1)p:last-child:指定<p>元素的父元素中最后一个<p>元素,如何父元素中的最后一个元素不是<p>则匹配失败,没有效果。 p:last-child { background:#ff0000; } <body> <p>The first paragraph.</p> <p>The second pa...原创 2020-03-21 16:11:13 · 478 阅读 · 1 评论