when I first open my page, my h1
element's font-size shows very small. When I resize it, it automatically becoming huge. I want to know what is the problem with my code?
$('h1').fitText(0.273);
I didn't write font-size property in h1's css code. Thanks!
as i see fittext make it scalable. so you make 18/4*(browser scale). In sample with 0.273 font size is 220px, your font size about 18px
try to set
$('h1').fitText(1);
or more
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.