em 与 rem
作者:
jh2k15 | 来源:发表于
2018-05-16 17:33 被阅读0次<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
/* html{
font-size: 20px;
}*/
/* body{
font-size: 20px;
}*/
.em{
background: red;
width:10em;
height:10em;
font-size: 20px;
}
.rem{
background: blue;
width:10rem;
height:10rem;
font-size: 20px;
}
</style>
</head>
<body>
em
<div class="em">
</div>
rem root element
<div class="rem">
</div>
</body>
</html>
本文标题:em 与 rem
本文链接:https://www.haomeiwen.com/subject/adhmdftx.html
网友评论