0
任何人都經歷過haml並知道如何將它與canvas一起使用?haml接受我的畫布,但不喜歡我的z索引樣式屬性
%canvas#myCanvas{:width => 1000, :height => 1000, :style => z-index: 2}
HAML不喜歡我的z-index我得到一個錯誤,當我想HAML
Syntax error on line 131: input.haml:8: syntax error, unexpected ':', expecting ')'
...ght => 1000, :style => z-index: 2)}></canvas>\n <canvas i...
... ^
input.haml:8: unknown regexp options - cava
input.haml:8: syntax error, unexpected $undefined
...vas id='layerCanvas'></canvas>\n </body>\n</html>\n", -2, f...
... ^
input.haml:8: unknown regexp options - htl
input.haml:8: syntax error, unexpected $undefined
...></canvas>\n </body>\n</html>\n", -2, false);;_erbout
... ^
input.haml:8: unterminated string meets end of file
input.haml:8: syntax error, unexpected end-of-input, expecting tSTRING_DEND
...</html>\n", -2, false);;_erbout
... ^
Use --trace for backtrace.