【发布时间】:2016-02-05 09:44:57
【问题描述】:
我正在尝试为我的表格获取圆形单元格,但我无法执行 css,因为边框半径在我的代码中不起作用,即
桌子
{
边框间距:10px;
边框折叠:单独;
}
<tr>
<td style=\"border:1px solid black; background-color:#FE0000; color:white; text-align:center;\"><b>xxxxxxxxxxx</b></td>
<td style=\"border:1px solid black; background-color:#F69546; color:white; text-align:center;\"><b>xxxxxxxxxxx</b></td>
<td style=\"border:1px solid black; background-color:#92D14F; color:white; text-align:center;\"><b>xxxxxxxxx</b></td>
这里我使用的是 tcpdf 和 html
【问题讨论】:
-
style=\"...."不应该有反斜杠并且你有一个结束标签</b>没有打开一个。 -
但我需要保持强烈反对,因为我正在编写这个html来生成pdf......!!!
-
这个
PHP有什么关系? -
我正在使用 TCPDF 并在 $html ="html code here";
-
那么你应该把
$html ="html code here"改成$html ='html code here'然后去掉blackslash的