HTML的ID選擇器

http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ID選擇器</title>
<style type="text/css">
 #d1{
  height:400px;
 width: 800px;
 color:red;
  background-color:yellow;
  font-family:隸書;
  font-style: italic;
  font-weight: 900;
 } 
 #d2{
  width : 100;
  text-align:center;  
  font:italic 800 32px;
  line-height: 32px;
  letter-spacing: 12px;
  text-decoration: none;
  white-space: nowrap;
 }
</style>
</head>
<body>
 <div id="d1">
 2017年廣西南寧國際東盟博覽會
 </div>
 <div id="d2">
 <hr>
 2017年廣西南寧國際東盟博覽會
 <hr>
 </div>
</body>
</html>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章