【发布时间】:2021-06-11 19:06:54
【问题描述】:
我看到了一些,例如Chrome 控制台中的 div/button 样式如下:
/* Chrome browser styles tab */
.ItemClass1-0-3-171.ItemClass2-0-3-173: {
background-color: "red"
}
如何在 CSS 中定义新样式而忽略类号?因为它可以是页面上其他 div/按钮的不同数字..
/* CSS file */
.ItemClass1.ItemClass2 {
background-color: "blue"
}
【问题讨论】: