【发布时间】:2016-09-19 03:13:19
【问题描述】:
我看到这种情况越来越频繁。
我总是被教导将 html、css 和 javascript 分开(当然,html 链接到源/脚本)。
我理解,如果 you're sending an email 有时在 html 中使用 style attribute 有时是可以的并且是首选。
但是,在构建网站或应用程序时,使用style 属性是否被认为是不好的做法?
<div style="margin: 0 auto; width: 114px; height: 32px; text-align: center; font-family: arial; padding: 25px; border-radius: 50px; line-height: 32px; background: rgb(46, 154, 255);">Hello world</div>
【问题讨论】: