Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/grails/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Grails3.3.0:它包括引导吗?_Grails_Twitter Bootstrap 3 - Fatal编程技术网

Grails3.3.0:它包括引导吗?

Grails3.3.0:它包括引导吗?,grails,twitter-bootstrap-3,Grails,Twitter Bootstrap 3,当我试图找出如何将引导程序引入grails 3.3.0时,当支持它的插件过时/不受支持时,我注意到application.css中已经有一个引导程序条目: *= require bootstrap *= require grails *= require main *= require mobile *= require_self 在bootsrap.css中,它的版本是3.3.6 这似乎是一个没有文档记录的特性,并且有很多关于如何将引导程序导入Grails3的帖子,如果已经存在的话,这是毫无

当我试图找出如何将引导程序引入grails 3.3.0时,当支持它的插件过时/不受支持时,我注意到application.css中已经有一个引导程序条目:

*= require bootstrap
*= require grails
*= require main
*= require mobile
*= require_self
在bootsrap.css中,它的版本是3.3.6

这似乎是一个没有文档记录的特性,并且有很多关于如何将引导程序导入Grails3的帖子,如果已经存在的话,这是毫无意义的,除非他们正在试图找出如何更新引导程序版本

为了查看引导是否正常工作,我编辑了default main.gsp并添加了:

<button type="button" class="btn btn-default btn-lg">
  <span class="glyphicon glyphicon-star" aria-hidden="true"></span> Star
</button>

明星
不幸的是,渲染的内容似乎被破坏了-图示符应该是一个方形框

我尝试过许多其他引导示例,但它们似乎不起作用,即没有正确渲染。我不知道这是因为bootstrap不起作用,还是grails默认生成的数千行CSS中的所有内容都被覆盖了


是否有人知道我可以在main.gps中输入一些东西,如果引导正在工作,这些东西将显示一种方式或另一种方式?

它只包括引导样式表。如果要使用字形图标,需要单独下载字形字体

这在引导样式表中也可以看到,因为fontface指的是不存在的库

@font-face {
  font-family: 'Glyphicons Halflings';

  src: url('../fonts/glyphicons-halflings-regular.eot');
  src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}
我想,唯一包含引导样式表的是,在不使用glyph图标的情况下,为起始“模板”设置样式

引导程序的完整包如下所示():

bootstrap/
├── css/
│   ├── bootstrap.css
│   ├── bootstrap.css.map
│   ├── bootstrap.min.css
│   ├── bootstrap.min.css.map
│   ├── bootstrap-theme.css
│   ├── bootstrap-theme.css.map
│   ├── bootstrap-theme.min.css
│   └── bootstrap-theme.min.css.map
├── js/
│   ├── bootstrap.js
│   └── bootstrap.min.js
└── fonts/
    ├── glyphicons-halflings-regular.eot
    ├── glyphicons-halflings-regular.svg
    ├── glyphicons-halflings-regular.ttf
    ├── glyphicons-halflings-regular.woff
    └── glyphicons-halflings-regular.woff2