Responsive font size in CSS

前端 未结 30 2763
刺人心
刺人心 2020-11-22 07:23

I\'ve created a site using the Zurb Foundation 3 grid. Each page has a large h1:

30条回答
  •  醉话见心
    2020-11-22 08:06

    A responsive font size can also be done with this JavaScript code called FlowType:

    • http://simplefocus.com/flowtype/
    • https://github.com/simplefocus/FlowType.JS

    FlowType - Responsive web typography at its finest: font-size based on element width.

    Or this JavaScript code called FitText:

    • http://fittextjs.com/
    • https://github.com/davatron5000/FitText.js

    FitText - Makes font-sizes flexible. Use this plugin on your responsive design for ratio-based resizing of your headlines.

提交回复
热议问题