!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<style type="text/css">
/*定义所有div样式*/
div
{
width:100px;
height:30px;
}
#div1
{
border-width:1px;
border-style:dashed;
border-color:red;
}
#div2
{
border-width:1px;
border-style:solid;
border-color:red;
}
</style>
</head>
<body>
<div id="div1"></div>
<div id="div2"></div>
</body>
</html>