标签: stylus
最后一行字体大小h {i}不起作用,我该怎么办?
h1 = 2.441em h2 = 1.953em h3 = 1.563em h4 = 1.25em h5 = 1.25em h6 = 1.25em for i in (1..6) h{i} font-weight inherit line-height 1.2 font-size h{i}
答案 0 :(得分:3)
font-size lookup('h' + i)会做
font-size lookup('h' + i)
在此处查看示例:http://codepen.io/anon/pen/Bpamr