这CSS怎么写到一起?

dxjk43 2012-07-12 03:54:41
这2个写到一起 怎么写?要求保留前面的#tutor_info 和 #comment_consul。

#tutor_info #comment_consul .user_comment_aaa{
height: 69px;
width: 350px;
border-bottom-width: 1px;
border-bottom-style: dotted;
border-bottom-color: #BEBCBD;
float: left;
font-size: 13px;
font-weight: bold;
margin-top: 14px;
}


#tutor_info #comment_consul .user_comment_rrr{
height: 69px;
width: 350px;
border-bottom-width: 1px;
border-bottom-style: dotted;
border-bottom-color: #BEBCBD;
float: left;
font-size: 13px;
font-weight: bold;
margin-top: 14px;
}
...全文
79 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
乌镇程序员 2012-07-12
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 的回复:]

引用 3 楼 的回复:

CSS code
#tutor_info #comment_consul .user_comment_aaa, #tutor_info #comment_consul .user_comment_rrr {

}

有缩短的可能不? 我见别人用< 号?可以否?
[/Quote]

不能缩短。
dxjk43 2012-07-12
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 的回复:]

#tutor_info #comment_consul .user_comment_rrr .user_comment_aaa{
height: 69px;
width: 350px;
border-bottom-width: 1px;
border-bottom-style: dotted #BEBCBD;
float: left;
font-size: 13px;
font-w……
[/Quote]
我了个去你那么写表达的意思是什么?起码加个,号啊。
.user_comment_rrr , .user_comment_aaa
dxjk43 2012-07-12
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 的回复:]

CSS code
#tutor_info #comment_consul .user_comment_aaa, #tutor_info #comment_consul .user_comment_rrr {

}
[/Quote]
有缩短的可能不? 我见别人用< 号?可以否?
乌镇程序员 2012-07-12
  • 打赏
  • 举报
回复
#tutor_info #comment_consul .user_comment_aaa, #tutor_info #comment_consul .user_comment_rrr {

}
dxjk43 2012-07-12
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 的回复:]

#tutor_info #comment_consul .user_comment_rrr .user_comment_aaa{
height: 69px;
width: 350px;
border-bottom-width: 1px;
border-bottom-style: dotted #BEBCBD;
float: left;
font-size: 13px;
font-w……
[/Quote]
这样行不行?
我昨天这样写FF就不兼容。
peng631 2012-07-12
  • 打赏
  • 举报
回复
#tutor_info #comment_consul .user_comment_rrr .user_comment_aaa{
height: 69px;
width: 350px;
border-bottom-width: 1px;
border-bottom-style: dotted #BEBCBD;
float: left;
font-size: 13px;
font-weight: bold;
margin-top: 14px;
}

61,112

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧