[英]How can I hack a styles available in GWT theme?
I need to hack some the styles in GWT Clean theme. 我需要破解一些GWT清洁主题的样式。
For eg. 例如。
.gwt-TabLayoutPanel .gwt-TabLayoutPanelTabs {
background: none repeat scroll 0 0 #CCCCCC;
padding-left: 5px;
padding-top: 6px;
}
The above style exists in GWT Clean theme. 以上样式存在于GWT Clean主题中。
The following is the hacked one, 下面是被黑的,
@external gwt-TabLayoutPanelTabs;
.gwt-TabLayoutPanelTabs {
background: none repeat scroll 0 0 #FFF000;
padding-left: 1px;
padding-top: 0px;
top: 0px;
width: 140px !important; }
In the UI i see the style in the Clean.css. 在用户界面中,我在Clean.css中看到样式。 My hacked style is not applied.
我的骇客风格未套用。 But only the following lines are considered from my hacked Style
但是从我被黑的样式中仅考虑以下几行
top: 0px;
width: 140px !important; `
These 3 lines are not applied 这三行不适用
background: none repeat scroll 0 0 #FFF000;`
padding-left: 1px;
padding-top: 0px;
So can anyone help me? 有人可以帮我吗?
Thanks in advance, Gnik 在此先感谢Gnik
It is fixed by adding !important; 它通过添加!important;来固定。 with all the properties.
具有所有属性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.