h1 h2{ font-weight:bold} 同时选择两个可以吗?
可以,但是要用,分开 h1,h2就可以 前边有教程仔细找一下
可以使用分组选择器,用“,”隔开
h1,h2{ font-weight:bold}