div,标签中 用class属性 class=" " .a{ }
/* 水平对齐 */
display: flex;
/* 水平居右 */
text-align: right;
/* 垂直居中 */
margin: auto;
/* 背景颜色 */
background-color: gainsboro;
/* 背景图片 */
background: url('../assets/02.png');
/* 调整图片 填充 */
background-size: auto;
background-size: cover;
或者:background-size: 100%;
或尺寸设定:background-size: 800px 500px;
/* 调整大小 */
font-size: 30px;
/* 字体加粗 */
font-weight: bold;
/* margin div外 上边距 */
margin-top: 10px;
/* padding div内 下边距 主要用于下划线 */
padding-bottom: 20px;
/* 底部分界线 */
border-bottom: 1px darkgrey solid;
/* 外边距 两个参数 顶底和左右*/
margin: 15px;
/* 内边距 两个参数 顶底和左右 */
padding: 0 15px;
/* 顶底左右 */
top: 10px;
bottom:10px;
left: 10px;
right: 20px;
/* 颜色 */
color: cornflowerblue;
/* 属性1.位置 : 相对 */
position: relative;
/* 属性2.位置 : 绝对 */
position: absolute;
# 动态背景图
<div :style=&#