<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title></title>
<style>
html,body{
height:100%;
width:100%;
padding:0;
margin:0;
}
#content{
width:90%;
height:100%;
padding:0;
margin:10px auto;
}
</style>
<script type="text/javascript">
function GetQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) return r[2]; return null;
}
function img_resize(){
var imgs = document.getElementsByTagName('img');
for(var i in imgs)
{
var img = imgs[i];
img.style.width='100%';
img.style.height='auto';
}
}
</script>
</head>
<body>
//放入秀米等编辑器的section
</body>
<script>
img_resize();
</script>
</html>
已有 3180 位网友参与,快来吐槽:
发表评论