<table> <tr> <td height="30">price</td> <td height="30">$50</td> </tr> <tr> <td height="30">price</td> <td height="30">$30</td> </tr> </table> 위와 같이 td에 height 값을 그대로 넣으면 웹표준 위반입니다. 웹표준인지 확인하실려면 w3c validator 에 해당 페이지를 넣고 결과를 확인해 보시면 됩니다. 웹표준에 맞게 td heightf를 지정하시려면 아래와 같이 써주시면 됩니다. <style type="text/css"> table.tmp_table { width:100%; } table.tmp_table td { height:30px; } </style> <table class="tmp_table"> <tr> <td>price</td> <td>$50</td> </tr> <tr> <td>price</td> <td>$30</td> </tr> </table> |
|
|