首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在引导响应视图中正确地排列图像和文本?

如何在引导响应视图中正确地排列图像和文本?
EN

Stack Overflow用户
提问于 2022-06-05 08:08:43
回答 1查看 76关注 0票数 1

我想在引导下设计一个页面,在一个文本模式下,然后是图像,文本然后图像,文本然后图像--在笔记本电脑上是正确的,但是在移动中,它变得不正常了

代码语言:javascript
复制
<div class="container-fluid">
  <div class="row mt-5">
    <div class="col-sm-5 py-5 mt-5 mt-md-0 py-md-0 mx-auto">
      <h1>Fully Responsive Design</h1>
      <p style="font-size: large">
        When you use a theme created by Start Bootstrap, you know that the
        theme will look great on any device, whether it's a phone, tablet,
        or desktop the page will behave responsively!
      </p>
    </div>
    <div class="col-sm-5 mx-auto">
      <img
        style="width: 600px"
        class="img-fluid"
        src="https://images.pexels.com/photos/60597/dahlia-red-blossom-bloom-60597.jpeg?cs=srgb&dl=pexels-pixabay-60597.jpg&fm=jpg"
        alt=""
      />
    </div>
  </div>
  <div class="row mt-5">
    <div class="col-sm-5 mx-auto">
      <img
        style="width: 600px"
        class="img-fluid"
        src="https://images.pexels.com/photos/60597/dahlia-red-blossom-bloom-60597.jpeg?cs=srgb&dl=pexels-pixabay-60597.jpg&fm=jpg"
        alt=""
      />
    </div>
    <div class="col-sm-5 py-5 mt-5 mt-md-0 py-md-0 mx-auto">
      <h1>Updated For Bootstrap 4</h1>
      <p style="font-size: large">
        Newly improved, and full of great utility classes, Bootstrap 4 is
        leading the way in mobile responsive web development! All of the
        themes on Start Bootstrap are now using Bootstrap 4!
      </p>
    </div>
  </div>
  <div class="row mt-5">
    <div class="col-sm-5 py-5 mt-5 mt-md-0 py-md-0 mx-auto">
      <h1>Easy to Use & Customize</h1>
      <p style="font-size: large">
        Landing Page is just HTML and CSS with a splash of SCSS for users
        who demand some deeper customization options. Out of the box, just
        add your content and images, and your new landing page will be ready
        to go!
      </p>
    </div>
    <div class="col-sm-5 mx-auto">
      <img
        style="width: 600px"
        class="img-fluid"
        src="https://images.pexels.com/photos/60597/dahlia-red-blossom-bloom-60597.jpeg?cs=srgb&dl=pexels-pixabay-60597.jpg&fm=jpg"
        alt=""
      />
    </div>
  </div>
</div>

我想改变出现在电话上的图像的顺序。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-06-05 08:10:44

只管用

代码语言:javascript
复制
order-1 order-sm-2

在课堂上。它改变了第一个或第二个应该出现的顺序。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72505734

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档