多个标签或选择器同时声明
如:h1,h2,ul,li{margin:0;padding:0;}
定义的方法注意思:
如:h1,h2,ul,li{margin:0;padding:0;}
定义的方法注意思:
选择器之间用逗号隔开。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> style</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta name="author" content="" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<style type="text/css">
h1,h2,h3,h4,p{ font-size:16px;font-weight:normal;}
</style>
</head>
<body>
<h1>无所不知所不能东方彧卿</h1>
<h2>无所不知所不能东方彧卿</h2>
<h3>无所不知所不能东方彧卿</h3>
<h4>无所不知所不能东方彧卿</h4>
<p>东方彧卿东方彧卿东方彧卿东方彧卿东方彧卿东方彧卿东方彧卿东方彧卿</p>
</body>
</html>