前端小知识2

1.box-shadow阴影  一个特别全的教程:    https://mp.weixin.qq.com/s/t97RsDMZNZbTNHC5hWXEAw
 
2.CSS文本两端对齐:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
.item {
height: 32px;
line-height: 32px;
margin-bottom: 8px;
}
.label {
display: inline-block;
height: 100%;
100px;
text-align: justify;
vertical-align: top;
}
.label::after{
display: inline-block;
100%;
content: '';
height: 0;
}
.value {
padding-right: 10px;
}
</style>
</head>
<body>
<div class="item">
<span class="label" >hdsfsfsdfs</span>:
<span class="value">陕西</span>
</div>
<div class="item">
<span class="label" >中国</span>:
<span class="value">家乡</span>
</div>

</body>
</html>
原文地址:https://www.cnblogs.com/namehou/p/10223937.html