小小单身
2016-09-24 00:28
为什么ul的第一个li和ol的第二个li没有变?
<html>
<head>
<style type="text/css">
li + li {font-weight:bold;}
</style>
</head>
<body>
<div>
<ul>
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
</ul>
<ol>
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
</ol>
</div>
</body>
</html>
li {font-weight:bold;}
初识HTML(5)+CSS(3)
1230027 学习 · 19084 问题
相似问题