gpt4 book ai didi

css - 在 Zurb Foundation 中使用全高柱

转载 作者:太空宇宙 更新时间:2023-11-03 21:32:08 25 4
gpt4 key购买 nike

我正在尝试构建一个使用三列的应用程序。目前,我有以下代码:

<html>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.0/css/foundation.min.css">

<style type="text/css">
.app {
height: 100%;
width: 100%;
position: relative;
overflow: hidden;
}

.app-col {
height: 100%;
}

.fullwidth {
width: 100%;
height: 100%;
margin-left: auto;
margin-right: auto;
max-width: initial;
}
</style>
<meta class="foundation-data-attribute-namespace">
<meta class="foundation-mq-xxlarge">
<meta class="foundation-mq-xlarge-only">
<meta class="foundation-mq-xlarge">
<meta class="foundation-mq-large-only">
<meta class="foundation-mq-large">
<meta class="foundation-mq-medium-only">
<meta class="foundation-mq-medium">
<meta class="foundation-mq-small-only">
<meta class="foundation-mq-small">
</head>
<body>
<div class="app">
<div class="row fullwidth" data-equalizer="">
<div style="width:33%; height:100%;">
<div class="row" data-equalizer="">
<div class="large-6 columns" style="background-color:#467EAF;">
<h3>Hello</h3>
<nav>
<ul style="list-style: none;">
<li><a href="/what/we-do" style="color:white;">
<h4><i class="icon-google-plus"></i>Welcome</h4></a>
</li>
<li><a href="/about" style="color:white;">
<h4><i class="icon-google-plus"></i>About Us</h4></a>
</li>
</ul>
</nav>

<ul class="inline-list text-center pull-bottom">
<li><a href="#" title="Google Plus" rel="publisher" target="_blank">Google Plus</a></li>
<li><a href="#" rel="publisher" title="LinkedIn" target="_blank">LinkedIn</a></li>
<li><a href="#" title="Contact Us">Email Us</a></li>
</ul>
</div>

<div class="large-6 columns" style="background-color:#829EBF;">
<h3>ABOUT</h3>
<nav>
<ul style="list-style: none;">
<li><a href="/what/we-do" style="color:white;">Overview</a></li>
</ul>
</nav>
</div>
</div>
</div>

<div style="width:67%;">
Content

<ul class="inline-list text-center pull-bottom">
<li>©2015 Goes Here</li>
</ul>
</div>
</div>
</div>

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.0/js/foundation.min.js"></script>

<script type="text/javascript" src="https://apis.google.com/js/plusone.js" gapi_processed="true"></script>
</body></html>

我的问题是,我的列没有占据整个屏幕的高度。我认为这是 data-equalizer 属性的目的。不幸的是,看来我错了。我做错了什么?

最佳答案

我一直在使用 vh 单位来让它工作:

div.full-height {
min-height:100vh;
}

对于我们的特定元素,它符合我们的要求,您可以在 Can I Use 查看您的元素

关于css - 在 Zurb Foundation 中使用全高柱,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28720569/

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