使用Bing映射和Bootstrap(Using Bing maps with Bootstrap)
我有以下HTML:
<head> <script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.3"></script> <script type="text/javascript" src="~/Scripts/IndexView.js"></script> </head> <body onload="LoadMap();"> <div class="row"> <div> <h2>Where do you want to go?</h2> </div> </div> <div class="row"> <div id="pnlMap"> </div> </div> <div class="row"> <div style="align-content:center"> <h3>Test</h3> </div> </div> </body>
和IndexView.js:
function LoadMap() { var map = new VEMap('pnlMap'); map.LoadMap(); }
我最终得到的是地图从网页左上角开始的页面。 我想要的是让地图出现在文字下方你想要去哪里? 。
据我了解引导“行”的工作方式,他们应该顺序出现在页面上,如果我用文本替换地图,那正是发生了什么; 那么,是否有Bing地图打破了这一规则。 看看我在做什么似乎是正确的。
I have the following HTML:
<head> <script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.3"></script> <script type="text/javascript" src="~/Scripts/IndexView.js"></script> </head> <body onload="LoadMap();"> <div class="row"> <div> <h2>Where do you want to go?</h2> </div> </div> <div class="row"> <div id="pnlMap"> </div> </div> <div class="row"> <div style="align-content:center"> <h3>Test</h3> </div> </div> </body>
And IndexView.js:
function LoadMap() { var map = new VEMap('pnlMap'); map.LoadMap(); }
What I end up with is a page where the map starts at the very top left of the web page. What I want is for the map to appear beneath the text Where do you want to go?.
As I understand the way that bootstrap "rows" work, they should appear sequentially on the page and, if I replace the map with text, that is exactly what happens; so, is there something about Bing Maps that breaks this rule. Looking here what I'm doing appears to be correct.
原文:https://stackoverflow.com/questions/42607156
满意答案
由于@seanizer给出的原因,我们
.classpath
在我们的VCS中检查像.project
,.classpath
和.settings
这样的文件:避免地狱。所以这是我们处理事情的方式:
- 我们使用m2eclipse或maven eclipse插件来获取可以从POM派生的内容
- 我们使用专用的
build-tools
Maven模块来保存我们的文件
checkstyle.xml
由Checkstyle Multimodule配置建议codestyle-eclipse.xml
(Eclipse Formatter配置文件准备导入)codetemplates-eclipse.xml
(准备导入的Eclipse 代码模板 )- 我们将介绍如何使用Wiki中的上述文件设置开发环境
所有这一切都受到Vincent Massol在XWiki上所做的一切的启发(参见他们的Java Code Style页面及其svn的具体例子)。
We do not checkin files like
.project
,.classpath
and.settings
in our VCS for the reasons given by @seanizer: avoiding hell.So here is how we handle things:
- we use m2eclipse or the maven eclipse plugin to derive what can be derived from the POM
- we use a dedicated
build-tools
Maven module to hold files such as our
checkstyle.xml
as suggested by the Checkstyle Multimodule configurationcodestyle-eclipse.xml
(Eclipse Formatter profile ready to import)codetemplates-eclipse.xml
(Eclipse Codes Templates ready to import)- we document how to setup the development environment using the above files in our Wiki
All this is highly inspired by what Vincent Massol is doing at XWiki (see their Java Code Style page and their svn for a concrete example).
相关问答
更多多个开发人员如何处理单个Moodle项目?(How multiple developers can work on a single Moodle project?)
如何与其他开发人员共享信标(How to share beacons with other developers)
如何与其他开发人员共享Java项目?(How to share Java project with other developers? [closed])
在eclipse中设置maven java项目[关闭](Setup maven java project in eclipse [closed])
适用于多个开发人员的iOS Xcode项目文件共享(iOS Xcode project file sharing for multiple developers)
你如何设置一个maven java项目,也可以使用groovy?(How do you setup a maven java project that can also make use of groovy?)
如何使用Maven for App Engine设置Java Eclipse(Juno)动态Web项目(How to setup a Java Eclipse (Juno) dynamic web project with Maven for App Engine)
如何为多个开发人员设置Java maven项目以便轻松使用(How to setup a Java maven project for multiple developers to use easily)
构建多个Maven项目(Build multiple Maven projects)
相关文章
更多BootStrap入门教程 (一)
BootStrap入门教程 (二)
BootStrap入门教程 (四)
BootStrap入门教程 (三)
Bootstrap响应式网页布局视频教程
Bootstrap视频教程-宁皓网:Bootstrap 网页设计用户界面架构
Bootstrap基础视频教程-尚学堂视频教程
Bootstrap3与artDialog绝配搭建图书管理系统
顶 Opencart &Bootstrap&Android&IOS&JsonRPC&微信公众平台
Select2在Bootstrap 3 Modal框中不能搜索的解决方法
最新问答
更多获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
如何通过引用返回对象?(How is returning an object by reference possible?)
矩阵如何存储在内存中?(How are matrices stored in memory?)
每个请求的Java新会话?(Java New Session For Each Request?)
css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
xcode语法颜色编码解释?(xcode syntax color coding explained?)
在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!