<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div style="border: 5px solid red">
        边框测试solid的意思是实线,虚线是dotted
    </div>
    <div style="border-left: 5px solid red">
        边框测试2
    </div>
    <div style="
    height:48px;
    width: 80%;
    color: blue;
    font-size:20px;

水平方向居中

    text-align: center;
    /*垂直方向根据标签高度居中*/
     line-height:34px;

字体加粗

     font-weight:bold;
     border: 5px solid red">
        边框测试3
    </div>

</body>
</html>

 

相关文章:

  • 2021-07-20
  • 2021-11-12
  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
猜你喜欢
  • 2021-08-03
  • 2021-12-20
  • 2021-11-16
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
相关资源
相似解决方案