寸法の表示
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
#par{
width:600px;
height:300px;
background:green;
}
#son1{
width:300px;
height:100px;
background:blue;
}
#son2{
width:50%;
height:50%;
background:pink;
}
#test1{
font-size:20px;
}
#p1{
font-size:30px;
}
#p2{
font-size:1em;
}
</style>
</head>
<body>
<div id="par">
<div id="son1"> </div>
<div> , </div>
</div>
<div id="test1">
<p id="p1"> </p>
<p id="p2"> em ,em , "M" , font-size em</p>
</div>
</body>
</html>
本文は“よく騒ぐな”のブログから出て、転載して作者と連絡してください!