anhao-world
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div style="border:4px solid red">test</div>
    <div style="height: 48px;
    width:200px;
     border: 1px solid burlywood;
     font-size: 18px;
    text-align: center;
     line-height:48px;
    font-weight: bold;"
    >testing</div>

</body>
</html>
View Code

边框:
- 宽度,样式,颜色(border:4px dotted red) --dotted虚线 solid实线
- border-left
- height 高度,像素
- width 宽度。像素,百分比
- text-align 水平方向居中
- line-height 垂直方向根据标签方向高度居中
- color 字体颜色
- font-size 字体大小
- font-weight 字体加粗

分类:

技术点:

相关文章:

  • 2019-09-17
  • 2021-09-27
  • 2021-10-04
  • 2021-11-11
  • 2021-09-27
  • 2021-12-01
  • 2021-12-05
  • 2021-12-26
猜你喜欢
  • 2021-12-04
  • 2021-09-27
  • 2021-12-14
  • 2021-09-27
  • 2021-09-27
  • 2021-11-23
  • 2021-12-26
相关资源
相似解决方案