我正在尝试更改 div 的样式
<div id="map" style="height:25%;"></div>
到
<div id="map" style="height:0%;"></div>
点击一下
jQuery
$('hideMap').css({"height":"0%"});
<li><a name="hideMap" class="btn red"><i class="material-icons" style="color:white;">notifications_active</i></a></li></li>
如果您能提供帮助,请提前致谢:)
最佳答案
$('hideMap').css({"height":"0%"});
你想改变 map div的高度吗,那么你可以编写下面的代码
$('#map').css({"height":"0%"});
下面是工作 fiddle
关于jquery - 改变 Div 高度 jQuery,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36740822/