【发布时间】:2014-03-07 04:20:01
【问题描述】:
好的,这是 myResource.css
.gwtCellButton 按钮 { 边距:0; 填充:5px 7px; 文字装饰:无; ....更多款式在这里... } .gwtCellButton 按钮:活动 { 边框:1px inset #ccc; } .gwtCellButton 按钮:悬停 { 边框颜色:橙色; 颜色为橙色; }现在我想要.gwtCellButtonSmall,它与.gwtCellButton 完全一样,只是它有padding: 1px 2px;
当然,如果我这样做,那么我可以复制代码:
.gwtCellButton小按钮{ 边距:0; 填充:1px 2px; 文字装饰:无; ....更多款式在这里... } .gwtCellButton小按钮:活动{ 边框:1px inset #ccc; } .gwtCellButton小按钮:悬停{ 边框颜色:橙色; 颜色为橙色; }【问题讨论】: