twitter-bootstrap 如何在 NetBeans 中使用 Bootstrap 框架?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20917322/
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 use the Bootstrap framework in NetBeans?
提问by Saumil
I recently downloaded the Bootstrap framework from its official website. Currently I'm creating a web application in NetBeans and for designing I want to use this Bootstrap framework I have downloaded.
我最近从其官方网站下载了 Bootstrap 框架。目前我正在 NetBeans 中创建一个 Web 应用程序,并且为了设计我想使用我下载的这个 Bootstrap 框架。
The Bootstrap package I downloaded contains loads of file but from that I manually added the files like 'jquery.js','bootstrap.min.css'etc.
引导程序包,我下载包含文件的加载,但是从我手动添加的文件一样'jquery.js','bootstrap.min.css'等等。
Now I want to use the glyphicons from the Bootstrap, but I have no idea how to integrate the file of glyphicons in NetBeans. So is there a way by which I can integrate the entire Bootstrap package I downloaded in my NetBeans project ?
现在我想使用 Bootstrap 中的字形,但我不知道如何在 NetBeans 中集成字形文件。那么有没有一种方法可以集成我在 NetBeans 项目中下载的整个 Bootstrap 包?
回答by jayeshkv
Glyphicon is usually included in the bootstrap.min.csselse you can import them using
Glyphicon 通常包含在bootstrap.min.css您可以使用的else 中
Bootstrap CSS CDN
引导 CSS CDN
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet">
if you want to use them try using them using the syntax
如果您想使用它们,请尝试使用语法来使用它们
<span class="glyphicon glyphicon-heart"></span>
<span class="glyphicon glyphicon-heart"></span>
Here is the working Demo
这是工作演示
let me know if it works
让我知道它是否有效
回答by Geertjan Wielenga
Bootstrapis built into NetBeans, no need to download anything except NetBeans, as explained here:
Bootstrap内置于 中NetBeans,除 外无需下载任何内容NetBeans,如下所述:
https://blogs.oracle.com/geertjan/entry/up_running_with_twitter_bootstrap
https://blogs.oracle.com/geertjan/entry/up_running_with_twitter_bootstrap

