JSF里的表怎么引用CSS?
注意了,不是JSP
<BODY id= "searchItem ">
<ul>
<li class= "01 "> NO </li>
<li class= "02 "> name </li>
</ul>
<h:dataTable id= "table " border= "1 " binding= "#{AAA.BB} " var= "line ">
<h:column> <h:outputText value= "#{line.no} "/> </h:column>
<h:column> <h:outputText value= "#{line.name} "/> </h:column>
</h:dataTable>
</BODY>
列名可以调用。
可是一览表里的数据就不行。
css如下:
body#searchItem li.01,.01 {width: 50px;}
body#searchItem li.02,.02 {width: 90px;}
------解决方案--------------------styleClass= " "
------解决方案-------------------- <h:dataTable id= "table " border= "1 " binding= "#{AAA.BB} " var= "line " columnClasses= "01,02 ">
------解决方案--------------------styleClass= " "
headerClass= " "