Last active
April 11, 2018 13:27
-
-
Save yusureabc/ada77b8cd64f5b5c09eb7f8b4080d2e2 to your computer and use it in GitHub Desktop.
手机 H5页面适配
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<style type="text/css"> | |
@media screen and (max-width:359px) and (min-width:320px) { | |
html,body{ | |
font-size: 8px !important; | |
} | |
} | |
@media screen and (max-width:374px) and (min-width:360px) { | |
html,body{ | |
font-size: 9px !important; | |
} | |
} | |
@media screen and (max-width:409px) and (min-width:375px) { | |
html,body{ | |
font-size: 10px !important; | |
} | |
} | |
@media screen and (max-width:639px) and (min-width:410px){ | |
html,body{ | |
font-size: 11px !important; | |
} | |
} | |
</style> | |
</head> | |
<body> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment