The content of this article is about how to control font size with css? The introduction to the method of responsive font control in CSS has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
#footer{ font-size: 0.8rem; } @media only screen and (min-width:768px){ #footer{font-size: 1rem;} } @media only screen and (min-width:992px){ #footer{font-size:1.2rem;} } @media only screen and (min-width:2000px){ #footer{font-size:1.6rem;} }
Related recommendations:
How to realize the animation effect of panorama with CSS3 (with code)
How to use pure CSS3 to realize the picture wheel The effect of broadcasting
The above is the detailed content of How to control font size with css? Introduction to the method of responsive font control in css. For more information, please follow other related articles on the PHP Chinese website!