我上过这样的课
.lifetime .containerrow
{
text-align: center;
height: 20px;
}我需要将一些元素中的文本设置为粗体,所以我这样做了:
.lifetime .containerrow .info
{
font-weight:bold;
}这个不起作用,但这个起作用了:
.lifetime.containerrow.info
{
font-weight:bold;
}为什么?不是一回事吗?
谢谢
不太了解css
发布于 2012-10-18 16:27:38
我假设您想要对多个类应用粗体粗体:
.lifetime,
.containerrow,
.info
{
font-weight:bold;
}https://stackoverflow.com/questions/12950180
复制相似问题