div[class$="-btn"]:active{
opacity:.8
}
<div class="user-btn"></div>
可匹配到div,class为“-btn”结尾的元素
div:[id^="item-"]{
color:red
}
<div id="item-op"></div>
可匹配到div,id为“item-”开头的元素
标签:匹配,结尾,id,item,div,选择器,css From: https://www.cnblogs.com/sherlock-V/p/17531426.html