0
点赞
收藏
分享

微信扫一扫

前端项目实战133-前端box-sizing的border-sizing模式案例

大自然在召唤 2022-10-29 阅读 74


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<style>
#customers {
padding: 2.5mm 0;
width: 40mm;
height: 45mm;
border: 1px solid gray;
background-color: aqua;
text-align: center;

box-sizing: border-box;

}
</style>
<body>
<div id="customers"></div>
</body>
</html>

单位直接用mm进行设置 进行打印标签纸的设置



举报

相关推荐

0 条评论