gpt4 book ai didi

html - Bootstrap : Stretching navbar-toggle button in media query

转载 作者:行者123 更新时间:2023-11-28 07:38:00 24 4
gpt4 key购买 nike

我已经开始使用 Bootstrap 制作一个简单的网站。一切正常,但因为我将我的 Logo 放在 navbar-header 中,所以当低于 407px(由于 Logo 大小为 407)时,该按钮确实很时髦。

目前,它是这样的(>407px 宽): http://imgur.com/SIGRNqm,jH9zJji,Kwvbv98#0

在 407 下,它看起来像这样: http://imgur.com/SIGRNqm,jH9zJji,Kwvbv98#1

我希望它看起来像这样:(点击前面的链接,将#1 替换为#2,“我没有足够的声誉...”)

我该怎么做?

谢谢!如果您需要任何进一步的详细信息,请告诉我。- jack

编辑:这是构成完整 header 的代码:

<div class="navbar-header" id="header">
<a href="//www.itsthejackpot.net" class="navbar-brand" id="logo">
<img src="/images/itsthejackpot.png" alt="itsthejackpot.net">
</a>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#mainNavBar" id="button">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>

我看到很多人提示在 button 中使用 span,但它工作正常。

最佳答案

可能不是最好的方法,但你可以暂时使用它:

@media only screen and (max-width : 480px) {
#logo, #logo img {
width: 230px;
margin-top: 3px;
height: 30px;
}
}

关于html - Bootstrap : Stretching navbar-toggle button in media query,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31123945/

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