HTML的ID选择器

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " 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>

猜你喜欢

转载自blog.csdn.net/qq_41690927/article/details/79207772