<div class="col-lg-7"> <h3 class="mb-4">基本信息</h3> <div class="col-sm-6 py-2"><h6>姓名: <span class="text-secondary">张雅维</span></h6></div> <div class="col-sm-6 py-2"><h6>出生日期: <span class="text-secondary">2003.3.15</span></h6></div> <div class="col-sm-6 py-2"><h6>性别: <span class="text-secondary">女</span></h6></div> <div class="col-sm-6 py-2"><h6>年龄: <span class="text-secondary">20</span></h6></div> <div class="col-sm-6 py-2"><h6>手机号码: <span class="text-secondary">12222222222</span></h6></div> <div class="col-sm-6 py-2"><h6>Email: <span class="text-secondary">2825275860@qq.com</span></h6></div> <div class="col-sm-6 py-2"><h6>学历 <span class="text-secondary">本科</span></h6></div> <div class="col-sm-6 py-2"><h6>学校: <span class="text-secondary">宁夏医科大学</span></h6></div> </div>将字号变大
时间: 2023-11-03 14:05:41 浏览: 143
可以使用 CSS 样式来将字号变大,例如:
```
<style>
h3 {
font-size: 36px;
}
h6 {
font-size: 24px;
}
</style>
<div class="col-lg-7">
<h3 class="mb-4">基本信息</h3>
<div class="col-sm-6 py-2"><h6>姓名: <span class="text-secondary">张雅维</span></h6></div>
<div class="col-sm-6 py-2"><h6>出生日期: <span class="text-secondary">2003.3.15</span></h6></div>
<div class="col-sm-6 py-2"><h6>性别: <span class="text-secondary">女</span></h6></div>
<div class="col-sm-6 py-2"><h6>年龄: <span class="text-secondary">20</span></h6></div>
<div class="col-sm-6 py-2"><h6>手机号码: <span class="text-secondary">12222222222</span></h6></div>
<div class="col-sm-6 py-2"><h6>Email: <span class="text-secondary">2825275860@qq.com</span></h6></div>
<div class="col-sm-6 py-2"><h6>学历 <span class="text-secondary">本科</span></h6></div>
<div class="col-sm-6 py-2"><h6>学校: <span class="text-secondary">宁夏医科大学</span></h6></div>
</div>
```
这样就可以将 h3 的字号设置为 36px,h6 的字号设置为 24px,从而让整个信息块的字号变大。
阅读全文