【发布时间】:2021-04-16 04:43:21
【问题描述】:
四处搜索,但找不到我需要的答案,我很好。还在学习。希望有人可以帮助我。
例如,现在我的学习网站上显示的问题是:
我希望将标题和整段内容移动到右侧而不移动图像上的位置以获得此结果:
这是原始代码:
.intro-section {
color: #fff;
position: relative;
z-index: 17;
padding: 80px 0;
margin-top: -86px;
background: url(../images/img.jpg) no-repeat top center;
background-size: cover;
}
.intro-section h3 {
text-transform: uppercase;
font-weight: 700;
font-size: 24px;
}
.intro-section .image-holder {
margin-top: 50px;
overflow: hidden;
}
<div class="intro-section">
<div class="container">
<div class="row">
<div class="col-md-6">
<h1> title </h1>
content paragraph xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
</div>
</div>
</div>
</div>
希望能在这里得到答案,谢谢你的帮助。
【问题讨论】: