html设置背景图
background-image: url(./img/img_accident_report.png);
设置背景图大小,自动拉伸背景图
background-size: 100% 100%;
<div style=" width: 100%; background-image: url(./img/img_accident_report.png); background-size: 100% 100%; ">
<div style=" font-weight: bold; font-size: 28px; color: azure; padding: 12px; ">报告</div>
<div style=" font-weight: bold; font-size: 16px; color: azure; padding-left: 12px;">检 测 · 真 实</div>
<div style=" font-weight: bold; font-size: 12px; color: azure; padding: 12px;">生成时间: 2023年10月11日</div>
</div>
元素居中
display: block; margin: auto;
文字居中
text-align: center;
文字下划线
text-decoration: underline;
边框线
border: 1px #1D6AF8 double;
圆弧角
border-radius: 10px;