-6ren">
gpt4 book ai didi

twitter-bootstrap - 删除 Bootstrap 中相对于视口(viewport)大小的偏移量

转载 作者:行者123 更新时间:2023-11-28 04:17:15 25 4
gpt4 key购买 nike

我就是这种简单的情况

<div class="row full" id="slogan">

<div class="col-sm-4 col-sm-offset-1 text-center" id="girl">
<img src="<?php the_field('immagine_slogan'); ?>" />
</div>

<div class="col-sm-6 text-center" id="colonna-testo-slogan">
<div class="testo-slogan">
<h2><?php the_field('titolo_slogan'); ?></h2>
<?php the_field('descrizione_slogan'); ?>
</div>
</div>


</div>

我希望在 -col-sm-4 col-sm-offset-1- wieport 大小低于 X px 时删除偏移量!可能吗??

最佳答案

使用媒体查询。例如,其中 X = 800 ..

@media (max-width: 800px) {
.reset-offset.col-sm-offset-1 {
margin-left: 0;
}
}

http://www.codeply.com/go/vFfstYZnAH

关于twitter-bootstrap - 删除 Bootstrap 中相对于视口(viewport)大小的偏移量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42418629/

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