centOS环境搭建
最近,买了一个腾讯云的服务器,上传了自己的博客,过程中也是很多辛酸泪的!
mark&share
transform: scale(0.5, 0.5)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>边框0.5px实现方法</title>
<style type="text/css">
.container {
width: 500px;
margin: 0px auto;
}
.border-scale {
position: relative;
padding: 10px;
}
.border-scale:after {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 0;
/* background-color: #f00; */
/* height设为1px,用background-color效果是一样的*/
border-top: 1px solid #f00;
transform: scaleY(0.5);
}
</style>
</head>
<body>
<div class="container">
<h3>方案一:使用缩放</h3>
<div class="border-scale">原理: 在Y轴方向上,压缩一半。</div>
</div>
</body>
</html>
思路二:
background-image: linear-gradient( , , )