Wednesday, February 29, 2012

about css style in gwt

in gwt developer guilde http://code.google.com/webtoolkit/doc/latest/DevGuideUiCss.html

complex style section:


 .gwt-MenuBar {         /* properties applying to the menu bar itself */     }    .gwt-MenuBar .gwt-MenuItem {         /* properties applying to the menu bar's menu items */     }    .gwt-MenuBar .gwt-MenuItem-selected {         /* properties applying to the menu bar's selected menu items */    }

I cannout underatand, why the css rule is
.gwt-MenuBar .gwt-MenuItem
but not
.gwt-MenuItem
?
I am not good in css, is
.gwt-MenuBar .gwt-MenuItem is equal to just one css class? not any special meaning for the prefix .gwt-MenuBar, that is
we can rename it as
.gwt-MenuBargwt-MenuItem will not any different?


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/6i_kAKsfeLYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment