gpt4 book ai didi

html - 如何使

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

正如我的标题所述,我有一个网站,我试图将其基本上分为三栏。左边的第一列将包含

最佳答案

如果您希望 3 个列的高度相同,您可以使用 supporting IE 10+ , flexbox 可以实现这个:https://codepen.io/pixleight/pen/RZgxYP/

#wrapper {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: stretch;
-ms-flex-align: stretch;
align-items: stretch;
-ms-flex-pack: distribute;
justify-content: space-around;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}

header,
nav,
aside,
main,
footer {
margin: 16px;
padding: 16px;
/* outline just for visibility purposes */
outline: 1px solid #F0F;
}

header,
footer {
-webkit-box-flex: 100%;
-ms-flex: 100%;
flex: 100%;
}

nav,
aside {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
}

main {
-webkit-box-flex: 2;
-ms-flex: 2;
flex: 2;
}
<div id="wrapper">
<header>
<h1>Header</h1>
</header>
<nav>
<ul>
<li><a href="http://www.jlsc.org">Home</a></li>
<li><a href="pool-info.htm">Pool Information</a></li>
<li><a href="news-events.htm">News &amp; Events</a></li>
<li><a href="swim-team.htm">Swim Team</a></li>
<li><a href="swim-lessons.htm">Swim Lessons</a></li>
<li><a href="jlsc-board.htm">JLSC Board </a></li>
<li><a href="photo-gallery.htm">Photo Galleries</a></li>
<li><a href="links-htm.htm">Useful Information</a></li>
</ul>
</nav>
<main>
<h2>Welcome to Juniper Lane Swim Club!</h1>
<p>Juniper Lane is the neighborhood club where family fun is #1!</p>
<p>Whether you're looking for a place to take the kids, swim a few laps <br> to stay in shape or just relax on a lounge chair with a good book - Juniper Lane is the place for you.</p>
<!-- truncated for brevity -->
</main>
<aside>
<h3>Aside</h3>
</aside>
<footer>
<small><i>Copyright &copy; 2017 Juniper Lane Swim Club</i></small>
</footer>
</div>

关于html - 如何使 <aside> 作为包含内容的列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45622792/

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