gpt4 book ai didi

html - Bootstrap : image height decrease while resizing window

转载 作者:行者123 更新时间:2023-11-28 04:52:48 26 4
gpt4 key购买 nike

我面临的问题是,我有 2 列。1 : 图片2 : 面板

当我调整浏览器窗口大小时,与面板相比图像高度降低。

Image height is decreasing

Original View

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">

<div class="row">
<div class="col-md-6 col-sm-6">
<a target="_blank" href="">
<div class="theme_view">
<img class="img-responsive" src="http://www.w3schools.com/css/img_fjords.jpg" alt="">

</div>
</a>
</div>

<div class="col-md-6 col-sm-6 col-xs-12">

<div class="panel panel-default set_padding_0 set_margin_0" >
<div class="panel-heading text-center">
<span class="font_size_14">Theme Name</span>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-6 col-sm-12 col-xs-12">
<div class="radio">
</div>

</div>
<div class="col-md-6 col-sm-12 col-xs-12">
<div class="radio">
<label class="i-checks">
<input value="option2" checked="" disabled="" type="radio">
<i></i>
Personal Domain Name
</label>
</div>
</div>
</div>


我还缺少什么?

任何帮助都会很棒。

谢谢。

最佳答案

试试这个:你可以指定你想要的高度

<img class="image" src="http://www.w3schools.com/css/img_fjords.jpg" alt="">


.image {
height: 650px;
width: 100%;
object-fit: cover; // here
}

关于html - Bootstrap : image height decrease while resizing window,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40602678/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com