简体   繁体   English

GWT-CSS样式

[英]GWT - CSS Style

in GWT , in my work have flex table , in each flex table cell there is a vertical panel , i want to remove vertical panel borders 在GWT,对我的工作有弯曲表,每个柔性表格单元格中有一个垂直的面板,我想删除垂直面板边框
i tried getElement().getStyle().clearBorderColor() but it does not work 我尝试了getElement()。getStyle()。clearBorderColor()但它不起作用
and when using in firebug ,discovered that it take flex table style ?? 并且在萤火虫中使用时,发现它采用了flex table样式?

获取它的类/ ID,并编写另一种样式来覆盖默认样式。

you probably need to add the !important to your css style. 您可能需要在CSS样式中添加!important。

.verticalPanel {
 border: none !important;
}

You also might look into using celltables this has a resources instance that is easy to override. 您可能还会研究使用具有易于覆盖的资源实例的单元表。

用这个

yourVerticalPanel.getElement().getStyle().setBorderStyle(BorderStyle.HIDDEN);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM