我的index.css中有这样的风格:
.sidebar-5 {
background-color: #EDEDED;
border: 1px solid #999999;
float: right;
height: 214px;
width: 498px;
border-radius:none !important;
}我可以使用这种样式来设置sidebar和box-sml的所有类。
[class^="sidebar"] , [class^="box-sml"] :not(#sidebar-5) {
border-radius: 7px 7px 7px 7px;
}或
[class^="sidebar"] :not(#sidebar-5), [class^="box-sml"] {
border-radius: 7px 7px 7px 7px;
}我想使用not()来跳过#sidebar-5元素,但我做不到。如何解决这个问题?
发布于 2014-02-10 07:58:33
用这个:
#sidebar-5{
border-radius: 0px 0px 0px 0px !important;
}或者如果它是一个类:
.sidebar-5{
border-radius: 0px 0px 0px 0px !important;
}https://stackoverflow.com/questions/21671704
复制相似问题