Share a tool site http://screensiz.es is used to query the size, screen density, and resolution of mainstream mobile phones, tablets and displays, with this site we can know the resolution, density, better fit, benefits [collection]./** * -------------- * 欢迎转载 | 转载请注明 * -------------- * 如果对你有帮助,请点击|顶| * -------------- * 请保持谦逊 | 你会走的更远 * -------------- * @author zsl * @github https://github.com/yy1300326388 * @blog http://blog.csdn.net/yy1300326388
This table lists and describes the various font sizes that can be applied. Attribute = fontsize
Name
Type
Description
Phonefontsizesmall
Double
18.667
Phonefontsizenormal
Double
20
Phonefontsizemedium
Double
22.667
Phonefontsizemediumlarge
Double
25.333
Phonefontsizelarge
Double
32
Phonefontsizeextralarge
Double
42.66
The page can adapt to the mobile phone screen size, and the image in it cannot be added to html
The content is read from the database, and the entire page and text can be adaptive, but the images in it won't be adaptive. what can I do?
Reply to discussion (solution)
Set the percentage width of the image.
The content is read from the database (html code), and the image attributes cannot be set
Https://zhidao.baidu.com/question/918130826792192539.htmlStart with the following code:CSS code can be used appropriately:@media only screen and (MAX-WIDTH:449PX) {}The different CSS code is automatically called according to the screen pixels.How to make HTML5 Web page to adapt to the size of the computer and mobile phone
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.