这样做更好吗:
.message_bookmark {
display: block;
height: 40px;
width: 40px;
position: relative;
left: 540px;
top: -168px;
opacity: 0.5;
}
.message_delete {
display: block;
height: 40px;
width: 40px;
position: relative;
left: 600px;
top: -128px;
opacity: 0.5;
}
或这个:
.message_bookmark, .message_delete {
display: block;
height: 40px;
width: 40px;
position: relative;
left: 540px;
top: -168px;
opacity: 0.5;
}
.message_delete {
left: 600px;
top: -128px;
}
就可读性而言,第二种方法更适合并且使用更少的代码,那么实际上哪种方法最好?