gpt4 book ai didi

javascript - 当显示较小时,div 从外部 div 弹出

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

我得到了以下代码: https://jsfiddle.net/2uhttdgk/3/

html {
height: 100%;
}
html, body {
min-height: 100% !important;
/* prevent horizontal scrolling */
max-width: 100% !important;
overflow-x: hidden !important;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}


#menuButton {
float:left;
background-image: url("../images/hamburger_menu.png");
width: 50px;
height: 40px;
margin-right: 5px;
}

#powerButtonBox {
float: right;
}

#outerBox {
min-height: 100%;
height: auto !important;
height: 100%;
}

#title {
background: #E95353;
padding: 10px;
color: white;
font-size: x-large;
}


#outerBox {
width: 100%;
height: 100%;
}


.nav a small {
display:block;
}
.nav {
background: #E95353;
}
.nav a {
border-radius:0px;
color: white;
}

.nav-pills>li {
text-align: center;
padding: 10px;
font-size: large;
}

.nav-pills>li.active {
background-color: #E95353; /*EF8686*/
border-bottom: 5px solid white;
color: white;
}

.nav-pills>li.active>a, .nav-pills>li.active>a:hover,

.nav-pills>li.active>a:focus {
color: #fff;
}
<div id="outerBox">
<div id="title">
<div id="menuButton"></div>
This is the Title
<div id="powerButtonBox">It is <a href="#" id="powerButton">powered on</a></div>
</div>

<ul class="nav nav-pills nav-justified">
<li id="newStuffButton" data-target="#" data-slide-to="0" class="store-tab active"><a href="#">New Stuff</a></li>
<li id="doneStuffButton" data-target="#" data-slide-to="1" class="store-tab"><a href="#">Done</a></li>
</ul>

<div id="newStuff" class="list-group tabContent"></div>
<div id="doneStuff" class="list-group tabContent"></div>
</div>

我的问题是,当显示宽度太小时,带有按钮的 div 溢出 title-div。在 jsfiddle 中滑动宽度较小时,您可以简单地重新创建错误。

对我来说没关系,有一个换行符。那是完美的。但它仍应具有红色背景并位于 title-div 中。我怎样才能做到这一点?

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