Responsive font-size/weight

后端 未结 4 968
轻奢々
轻奢々 2021-02-04 21:35

I can make my images/divs responsive by using percentages.

How can I make the font-size responsive to different screen sizes?

4条回答
  •  没有蜡笔的小新
    2021-02-04 22:32

    If you want it to change when you hit width milestones (e.g. 768px, 370px, etc.), then use a CSS3 media query. If you want it to be constantly changing, then you could use the same percentage, or em, technique as with the images/divs (i.e. target / context = result), but I would suggest media queries.

提交回复
热议问题