我試圖在HAML文件中添加一些內聯CSS。我認爲HAML - add type = text/css to <style> tag with:css filter
%noscript
:css
.pagecontent {display:none;}
會產生:
<noscript>
<style type="text/css">
/*<![CDATA[*/
.pagecontent {display:none;}
/*]]>*/
</style>
</noscript>
但事實並非如此。因爲它省去了type="text/css"
和生產:
<noscript>
<style>
/*<![CDATA[*/
.pagecontent {display:none;}
/*]]>*/
</style>
</noscript>
我可以只用蠻力%style(type="text/css")
但HAML的:css
過濾器好像它應該更加「優雅」?!?或者,我錯過了什麼(我很少處理內聯CSS),並且不再需要type
?!?
當然是綠色複選標記的竊取,先生。 +1 – Domenic 2012-01-17 17:24:16