开发者

Reasons why a CSS class does not get applied?

The following is my HTML structure

<div class="dxgroup rest_table_container">
  <table>....</table>
<div>

I have defined the following classes in my CSS file

rest_table_container 
rest_table_开发者_JS百科container th 
rest_table_container th label
rest_table_container td
rest_table_container input etc

My problem is that the class rest_table_container is not getting applied for the div that I have shown in the HTML. dxgroup class which is present in the same CSS file is getting applied. Also all the classes I have defined based on the class rest_table_container like "rest_table_container input" are all getting applied for the corresponding elements.


if that's a direct copy of your CSS classes, the problem is clear as day. You have to use a period in front of your class names.

.class-name

#idName

There is also a certain amount of oddities when it comes to styling tables with CSS. For example, if you're trying to give padding or margin to a TR, you can't do that, only can you do it on a TD. There are other caveats, but seeing your code will provide the best answer.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜