<style>  
#Ulist li:nth-of-type(odd){ margin-left: 20px;}奇数行   
#Ulist li:nth-of-type(even){margin-left: 10px;}偶数行   
<style>  
  
<ul >  
<li>1</li>  
<li>2</li>  
<li>3</li>  
<li>4</li>  
<li>5</li>  
<li>6</li>  
</ul>  

  

相关文章:

  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2022-02-28
  • 2021-11-29
  • 2022-12-23
  • 2021-07-13
猜你喜欢
  • 2022-12-23
  • 2021-10-30
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
相关资源
相似解决方案