我正在创建一个代码,我只能编辑不允许在CSS文件中进行更改的HTML。如何仅在 html 中对齐div 中的所有内容?
使用style
属性。 例如
<span style="position:absolute; top:10px; background-color:green;"></span>