CSS responsive font, self-adapting view window size

Source: Internet
Author: User

This seems to be a new font size unit viewport-percentage lengths.

The width and height of a unit is different from the size of the current view window by 1%, represented by (VW, VH). You can set the maximum minimum value by Vmin and Vmax.

1VW = width of the current view window (viewport) 1% 1VH = height of the current view window (viewport) 1% 1vmin = 1VW or 1VH, depending on which is smaller 1vmax = 1VW or 1VH, depending on which is larger

Style directly: WIDTH:1VW;

Reference: http://ourjs.com/detail/549cbea78a34fa3204000024

Of course, you can also use other programs, such as media query

Recommended to see this: http://blog.csdn.net/dyllove98/article/details/9246397

Good, there are several solutions available, try

CSS responsive font, self-adapting view window size

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.