我已经在twitterBootstrap Basic响应式设计站点实现了一个GoogleMapsV3 map .
但我的问题很简单:我有:
<div id="map"></map>
和
#map{ width: 100%; height: 200px }
我希望能够将高度更改为外形尺寸.就像这个"在我梦里的CSS"
#map { width: 100%; height: width * 1.72 }
I have tried leaving out height, setting to auto, 和 all sorts of persentages - but only to make the div collapse on me always.
我可以编写一个js-解决方案,但是希望有一个简单的清晰的css解决方案,可能是css3.
如果不可能,最好的办法是什么才能把我从这件事中解脱出来呢?(计时器、事件等)