jonkemp/inline-css

Avoid applying styles to items to HTML, HEAD and items in HEAD

開放

#33 建立於 2016年3月18日

 (2 則留言) (0 個反應) (0 位負責人)JavaScript (78 個分叉)github user discovery
enhancementhelp wanted

倉庫指標

星標
 (438 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

I've got a reset style something like this:

* {
     margin: 0;
     padding: 0;
}

the result is:

<html xmlns="http://www.w3.org/1999/xhtml" style="margin: 0; padding: 0;">
  <head style="margin: 0; padding: 0;">
    <meta name="viewport" content="width=device-width" style="margin: 0; padding: 0;">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" style="margin: 0; padding: 0;">
    <title style="margin: 0; padding: 0;">Actionable email</title>
    <link href="styles.css" media="all" type="text/css" style="margin: 0; padding: 0;">
  </head>

I can't think of any reason why you would want to apply styling to items in the head. It might be a good idea to turn this off by default and allow it to be turned on in the options.

貢獻者指南