如何在GWT Bootstrap 2.3中覆盖bootstrap css

时间:2014-07-25 13:14:41

标签: gwt-bootstrap

我的css被bootstrap css覆盖。

Bootstrap在我的CSS之后注入了css。

有没有为什么在注入css后添加我的CSS。

我知道我们可以使用!important来实现这一点,但它不灵活,因为我需要将它添加到每个属性。

<link type="text/css" rel="stylesheet" href="style.css">
<link rel="stylesheet" href="http://myapp.com/myapp/css/bootstrap.min.css">
<link rel="stylesheet" href="http://myapp.appspot.com/myapp/css/gwt-bootstrap.css">
<link rel="stylesheet" href="http://myapp.appspot.com/myapp/css/font-awesome.min.css">

有没有办法在注入的CSS之后插入我的样式表。

1 个答案:

答案 0 :(得分:0)

在gwt.xml中,检查在继承GWT引导程序模块后添加样式表文件 以下订单应该可以解决您的问题:

<inherits name='com.github.gwtbootstrap.Bootstrap' />
<stylesheet src='style.css'/>