twitter-bootstrap 如何在 Eclipse 中为 jsp 页面添加引导程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/30695214/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to add bootstrap in Eclipse for jsp pages
提问by Nitin Nandankar
I'm having problem while including Bootstrap.jar lib in my eclipse project. I'm unable to access it in my JSP page.
我在 Eclipse 项目中包含 Bootstrap.jar 库时遇到问题。我无法在我的 JSP 页面中访问它。
Can anyone help me out so that i can access it in my jsp page.
任何人都可以帮助我,以便我可以在我的 jsp 页面中访问它。
回答by amaiaeskisabel
Why don't you download the files from bootstrap (css, js, ing) and add it to the project like this http://vitalflux.com/get-started-bootstrap-ui-eclipse/. It is simpler
为什么不从引导程序(css,js,ing)下载文件并将其添加到项目中,如http://vitalflux.com/get-started-bootstrap-ui-eclipse/。更简单
回答by user8240628
download BootStrap from this link http://getbootstrap.com/and copy the file in your project main/resources/static
从此链接http://getbootstrap.com/下载 BootStrap并将文件复制到您的项目 main/resources/static
The below tutorials has step by steps for that. http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/basic_app_embedded_tomcat/basic_app-tomcat-embedded.html#overview
回答by Kavya Hanumantharaju
Download bootstrap from https://getbootstrap.com/docs/3.3/getting-started/
save it as bootstrap
it contain css,js,font folder containing all the code required for using bootstrap
now go to eclipse
1> create project give name and finish.
2> right click on created project create new file which u required(html,php,jsp)
3> after the successful completion of creating file,right click on file u created select import->General->File system->double click file system->browse->select the folder which u downloaded and saved as bootstrap.
4> use link for css (<link rel="stylesheet" href="bootstrap/css/bootstrap-min.css">)in head section.
5> for script in head section (<script type="text/javascript" src="boostrap/js/bootstrap.min.js" >) save and run the file.
从https://getbootstrap.com/docs/3.3/getting-started/下载引导程序,
将其保存为引导程序,
它包含 css、js、font 文件夹,其中包含使用引导程序所需的所有代码,
现在转到 eclipse
1> 创建项目并给出名称和结束。
2> 右击创建的项目创建你需要的新文件(html,php,jsp)
3> 成功创建文件后,右键单击你创建的文件选择导入->常规->文件系统->双击文件系统->浏览->选择您下载并保存为引导程序的文件夹。4> 在头部部分使用 css 链接(<link rel="stylesheet" href="bootstrap/css/bootstrap-min.css">)。
5> 对于头部部分的脚本 (<script type="text/javascript" src="boostrap/js/bootstrap.min.js" >) 保存并运行文件。

