在大屏幕中,将图像放置在文本旁边,然后在较小的屏幕上将它们堆叠在另一个下方

问题描述

我正在尝试建立自己的投资组合网站,并且希望它能够做出响应。在“关于我”部分,我将我的图像放在左侧,该部门的右边是一个关于我自己的简短介绍。现在,当我减小屏幕尺寸时,我希望将文本放置在图像下方。任何想法如何做到这一点?任何帮助表示赞赏。

很抱歉没有提前发布代码。

<!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" href="styles1.css">
  </head>
<body>
  <div class="container2" id="container2">
    <div class="intro">
      <div class="column-img">
        <!-- My image goes here  -->
        <img src="" alt="">
      </div>
      <div class="column-txt">
        <h2>Hello.</h2>
        <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,when an unknown printer took a galley of type and scrambled it to make a type specimen
          book.</p>
      </div>
    </div>
  </div>
</body>
</html>




.container2 {
  position: relative;
  padding-top: 100px;
  text-align: center;
  padding-bottom: 80px;
  background-color: #A8D0e6;
}


.intro{
  background: #f76c6c;
  padding-left: 25px;
  padding-right: 25px;
  position: relative;
  box-sizing: border-box;
  border-radius: 4px;
  align-items: center;
  max-width: 100%;
  width: 70%;
  margin: auto;
  color: white;
  display: flex;
  height: 450px;
  transition: 0.5s;
}

.intro .column-img img{
  float: left;
  margin-right: auto;
  border-radius: 50%;
  display: block;
  margin-left: auto;
  width: 320px;
  height: 456px;
  padding: 30px;
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)