我正在尝试将 TD 内的 PRE 块的内容垂直对齐到“顶部”。我正在使用 CSS 样式表文件。没运气。但是,我可以更改字体颜色和大小。
table td pre{
color: red;
font: normal 16px Arial;
vertical-align:top; /* Does not work */
}
想法赞赏。
编辑:
table td pre{
color: red;
font: normal 16px Arial;
}
table td {
padding: 5px;
border: solid 1px white;
background-color: #edeff1;
vertical-align: top;
}