<div class="col-lg-7"> <h3 class="mb-4">基本信息</h3> <br><br> <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">28252.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 19:05:41 浏览: 83
Bootstrap-3-Tutorial-54---Thumbnails:以下视频教程的代码
很抱歉,我作为一个语言模型,无法直接在回答中插入图片。但你可以尝试以下HTML代码实现你需要的效果:
```
<div style="position:relative;">
<img src="your_image_url.jpg" alt="your_image_description">
<div style="position:absolute;top:0;left:0;background-color:rgba(255,255,255,0.5);padding:10px;">
<h3 class="mb-4">基本信息</h3>
<br><br>
<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">28252.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>
</div>
```
你需要将其中的 "your_image_url.jpg" 替换为你要插入的图片的URL地址,并按需修改其他样式参数。
阅读全文