会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
心悠魂然
博客园
首页
新随笔
联系
订阅
管理
2023年12月4日
伪元素before,after使用(如文本前的圆点)
摘要: 其实主要就是要定义content:""; before或after会相对定义position:relative;最近的元素去定位; 比如实现一个文本前的黑色圆点: p::before { content: ""; width: 4px; height: 4px; background-color:
阅读全文
posted @ 2023-12-04 10:20 你风致
阅读(30)
评论(0)
推荐(0)
编辑
公告