多个内联样式显示不正确

mai*_*mai 4 html inline

抱歉,这里是设计师(不是开发人员)。我遇到的问题是只应用了第一个属性,而在第一个属性之后无法应用任何其他属性。我知道最好的方法是通过 CSS,但有时需要一个快速简单的工作,不能花时间正确开发或编辑 CSS。

这是我所拥有的,有什么问题?:

<!DOCTYPE html>
<html>
<body>

<div style="text-align:center;" style="font-decoration-style:bold;" style="text-decoration-color:red;">Helloooo!</div>


</body>
</html>
Run Code Online (Sandbox Code Playgroud)

raf*_*uto 8

Sorry but you can only have one attribute of a kind for each element in HTML. Try this instead:

    <!DOCTYPE html>
    <html>
      <body>
        <div style="text-align:center; font-weight:bold; color:red;">Helloooo!</div>
      </body>
    </html>
Run Code Online (Sandbox Code Playgroud)