【问题标题】:How do I make it responsive?如何让它响应?
【发布时间】:2019-02-12 01:59:45
【问题描述】:

我买了这个模板,我正在编辑。它使用引导程序,但这个图像似乎有一些问题,它改变了不同显示器的大小。我尝试添加:

.responsive {width: auto; height: auto;}

修复它,但我没有得到任何结果。我还可以做些什么? PS。我将附上我正在使用的 HTML/CSS 的副本。

<div class="col-lg-6 right-side order-1 order-lg-2">
  <div class="tab-content" id="nav-tabContent">
    <div class="tab-pane fade active show responsivo" id="nav-home" role="tabpanel" aria-labelledby="nav-home-tab">
       <img src="images/macbook_1.png" alt="Equipe Quest Group" class="container_resp">
    </div>
  <div class="tab-pane fade **responsive**" id="nav-profile" role="tabpanel" aria-labelledby="nav-profile-tab">
    <img src="images/macbook_2.png" alt="Quest Logo" class="container_resp">
  </div>
 </div>

Screenshot

【问题讨论】:

  • 所有col-lg-6 right-side order-1 order-lg-2 表明该网站正在使用可能是响应式 CSS 框架。

标签: css image responsive


【解决方案1】:

通过添加 css 使图像具有响应性

img{
width: 100%;
max-width: 100%;
height: auto;
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-08-12
    • 1970-01-01
    • 2020-12-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多