gpt4 book ai didi

css - 在 FireFox 29.0.1 中不工作 css calc()

转载 作者:太空宇宙 更新时间:2023-11-04 03:48:03 26 4
gpt4 key购买 nike

 <style>
.mapstyle {
height: 100%;
height: -webkit-calc(100% - 60px);
height: -moz-calc(100% - 60px);
height: calc(100% - 60px);
margin-left: 300px;
}
</style>

<div style="margin:0 auto; position:relative; text-align: left; width: 100%;">
<div style"width:100%;"><h1>HEADER</h1></div>
<div style="width: 300px; position: absolute; top: 100px; left: 0;">test</div>
<div id="map" class="mapstyle">
<script>....
var map = L.map('map').setView([57.3, 29.4],).setMaxBounds(bounds);
...//Leafletjs.com
</script>
</div>
</div>

css 中的函数 calc() 在 firefox 29.0.1 中不工作,其他浏览器可以工作。

最佳答案

改变第一个div

position:absolute; height:100%

http://jsfiddle.net/Dxn5d/2/

关于css - 在 FireFox 29.0.1 中不工作 css calc(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23808239/

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