Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在使用 CSS 框架 Bootstrap 样式的 HTML5 页面中使用 OpenLayers-2.12 地图。是否有可能具有可变的地图宽度,如OpenLayers 2.12 版所示?如果是这样,你能给我举个例子吗?提前致谢。
应用 OpenLayers 的 div 上的 100% (CSS) 宽度width: 100%;适用于 OpenLayers 2.12
width: 100%;