如何组合多个CSS规则? [英] How can I combine multiple CSS rules?
本文介绍了如何组合多个CSS规则?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
div#id_div_allposts {
width: 100%;
}
div.class_div_post {
width: 100%;
}
div.class_div_editdelete {
width: 100%;
}
如何写成一行?
如何选择带有id和类的html标签?
And what's the way to select a html tag with id and class ?
推荐答案
要用逗号分隔它们,例如
All you have to do is separate them with a comma e.g
div#id_div_allposts, div.class_div_post, div.class_div_editdelete{
width:100%;
}
这篇关于如何组合多个CSS规则?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文