开发者

table class in php

开发者 https://www.devze.com 2022-12-28 00:16 出处:网络
Is it possible to put a table class in php, like this: echo \"<tableclass=\'xd\' border=\'1\'> <tr>

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

精彩评论

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