摘要: 只需要添加 background-size: 100% 100%; 就行 div { background: url(); background-size: 100% 100%; } 阅读全文
posted @ 2021-03-28 14:30 L-L 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 效果 代码如下 <style> div { position: relative; width: 199px; height: 20px; border: 1px solid gray; } div::after { content: ''; position: absolute; top: 5px 阅读全文
posted @ 2021-03-28 13:12 L-L 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 效果 代码如下 <style> .box { position: relative; margin: 100px auto; width: 100px; height: 200px; background: blue; } .box span { position: absolute; left: 阅读全文
posted @ 2021-03-28 13:07 L-L 阅读(59) 评论(0) 推荐(0) 编辑