css - 为什么对齐 ="center"不覆盖 {text-align :right;}

标签 css xhtml

为什么 <td align="center">5</td>不覆盖 table.finTable tbody tr td {text-align:right;}

最佳答案

内联 CSS 样式覆盖 CSS,但内联属性并不总是被覆盖。

将您的 td 更改为 style="text-align:center" 而不是 align="center"

关于css - 为什么对齐 ="center"不覆盖 {text-align :right;},我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2546857/

相关文章:

xhtml - 图像 map <map> 是否已弃用?

html - CSS 为什么 div 重叠?

html - 使用css将图像置于前面

javascript - Bootstrap 4 Safari 漏洞

css - 更改 ionic 2中警报 Controller 的样式和文本修改

css - 我可以插入背景大小 : cover into the background shorthand?

java - itext 将 xhtml 转换为 pdf

html - 没有互联网连接,xmlns 属性如何工作并被浏览器理解?

java - 使用 docx4j 将 docx 部分转换为 html

javascript - 如何正确地将 CSS 文件包含到页面中