普通web网页自适应移动设备屏幕

<mate>标签的设置如下

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="user-scalable=no, width=device-width">
<meta name="viewport" content="width=device-width, initial-scale=1" />

css样式的设置如下

<style type="text/css">
body {font: normal 100% Helvetica, Arial, sans-serif;}
h1 {font-size: 1.5em;}
small {font-size: 0.875em;}
img { max-width: 100%;}
</style>


--------------------------可以加我微信号:googlecao 进行交流------------------------


          微笑如果你觉得此文章对你有用,给我点动力,请我喝杯奶茶咯微笑


你可能感兴趣的:(html,Web,css,移动设备)