style and script tags in HTML body… why not?

后端 未结 7 2040
野的像风
野的像风 2020-11-29 06:57

[This is related to this question, but not since it\'s not about email.]

In many cases -- especially when working with a CMS or someone else\'s fram

7条回答
  •  忘掉有多难
    2020-11-29 07:46

    Well, you have the problem of directly embedding styles and scripts into your content. The primary mantra here is the DRY (Don't Repeat Yourself) Principle. You may use a script or particular style in multiple places. When that style or script requires modification, you now get to go on a scavenger hunt for all the places where that code exists. Keeping your styles and scripts in a common place is ideal.

    On the other hand, if it is a minor style issue (pixel pushing or something related to just that one view), it's probably okay.

提交回复
热议问题