会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
陋室
To Be Yourself!!
博客园
首页
新随笔
联系
订阅
管理
2023年7月6日
[css]选择器,匹配以某个字符开头或结尾
摘要: ## 1. 属性以固定字符结尾 ``` div[class$="-btn"]:active{ opacity:.8 } ``` ``` ``` 可匹配到div,class为“-btn”结尾的元素 ## 2. 属性以固定字符开头 ``` div[id^="item-"]{ color:red } ``
阅读全文
posted @ 2023-07-06 10:26 胡安
阅读(234)
评论(0)
推荐(0)
编辑