文字自适应在html页面加入
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0'>
<meta name='apple-mobile-web-app-capable' content='yes'>
<meta name='apple-mobile-web-app-status-bar-style' content='black'>
<meta name='format-detection' content='telephone=no'>
图片自适应加入
<style type='text/css'>img{width:100%}</style>
<table style="width:100%;font-size:1.1em">
网页自适应布局技巧
本文介绍了实现网页自适应布局的方法,包括使用特定的meta标签确保HTML页面能在不同设备上正确显示,通过CSS设置图片宽度使其能自适应各种屏幕尺寸。
3542

被折叠的 条评论
为什么被折叠?



