假设我的表脚本中有这行代码: <th rowspan="2" colspan="1">The header</th> 结果如下所示:one of the headers of my table 我想要的结果是文本在垂直和水平方向上都居中。 我试过class=的“文本中心”,但它只在水平方向居中。我发现的其他解决方案只有1个rowspan,所以它是不同的,我可以只使用文本中心。我还找到了这个我假设为vertical-align的valign,它有“中间”值,但它也不起作用。 如何获得我想要的结果?
考虑以下html文件:
<!DOCTYPE html>
<html>
<head>
<title>Test of table</title>
<style type="text/css">
p {text-align:justify;}
li {text-align:justify;}
ins {background-color:#A0FFA0;}
del {backgro