开发者

table class in php

Is it possible to put a table class in php, like this:

echo "<table  class='xd' border='1'>
<tr>
<th>IDNO</th>
<th>ADDRESS</th>
<th>LASTNAME</th>
<th>FIRSTNAME</th>

</tr>";

I have a table inside a t开发者_开发知识库able. The outside table is html. And if I only put table in the css. It will affect both. But when I put class in the table with php script. It won't work. Please help.


Will effect all tables on the page:

table {
}

Affects just tables with the class bla:

table.bla {
}


yes, you can do so. if your css doesn't work, maybe your selector is wrong? (mixed up #bla and .bla ?)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜