문제

The last line font-size h{i} doesn't work, how can i do it ?

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} 
도움이 되었습니까?

해결책

font-size lookup('h' + i) will do

see an example over here: http://codepen.io/anon/pen/Bpamr

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top