Example of my code using the text align syntax.

<cite style="color: blue; font-style: normal; text-align: right">

Paul M. Barrett, The New York Times Book Review

</cite>

最佳答案

在您的内联样式中添加display: block;可以解决此问题。

码:

<cite style="color: blue; font-style: normal; text-align: right; display: block;">

Paul M. Barrett, The New York Times Book Review

</cite>


Codepen:https://codepen.io/brooksrelyt/pen/ZwwQbq

关于html - 格式化HTML文档时,我无法获得<cite>文本以使其对齐,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/54716939/

10-13 01:43