日期:2014-05-17 浏览次数:20724 次
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title></title> </head> <body> <table style="width:100%; border-spacing:0; border-collapse:collapse;"> <tr style="background:#0CF"> <td> </td> <td> </td> </tr> <tr style="background:#000"> <td> </td> <td> </td> </tr> </table> </body> </html>
------解决方案--------------------
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>test</title> <style> .bluelinetable{ border-collapse:collapse; width: 600px; } .bluelinetable td{ border: 1px solid #A9CBEE; } </style> </head> <body> <table class="bluelinetable"> <tr> <td rowspan="3" width="20%" align="center">发言人信息</td> <td style="font-size:12px;">回复于:2012-04-11 10:50:01</td> </tr> <tr> <td style="font-size:14px;"><p>下面是一个表格的HTML问:如何写样式单。</p></td> </tr> <tr> <td style="font-size:12px;">回复次数:3</td> </tr> </table> </body> </html>