• 学习日记day9: PC端页面流程优化


    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="gb2312">
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <title>此处为标题</title>
    <link rel="stylesheet" href="" />
    <script src=""></script>
    <style rel="stylesheet">
    blockquote,body,button,dd,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,hr,input,legend,li,ol,p,pre,td,textarea,th,ul{margin:0;padding:0}
    body, button, input, select, textarea {font: 12px/1.5 tahoma,arial,'Hiragino Sans GB','5b8b4f53',sans-serif;}
    h1,h2,h3,h4,h5,h6{font-size:100%}
    address,cite,dfn,em,var{font-style:normal}
    ol, ul {list-style: none;}
    a{text-decoration:none}
    sup{vertical-align:text-top}
    sub{vertical-align:text-bottom}
    button,input,select,textarea{font-size:100%}
    img{border:0;}

    div{background: #1e5896;height: 688px; margin: 0 auto;}
    .wrap{ 980px;}
    .wrap1200{ 1200px;}
    </style>
    </head>
    <body>
    <div id="min_max_width">

    </div>
    <script>
    window.onload = window.onresize = width_onload;
    function width_onload() {
    var isMaxWidth = true;
    var isMinWidth = true;
    var iWinWidth = document.body.clientWidth || document.documentElement.clientWidth;
    var oWrap = document.getElementById('min_max_width');
    if (oWrap) {
    if (iWinWidth > 1200 && isMinWidth) {
    oWrap.className = 'wrap1200';
    isMinWidth = false;
    isMaxWidth = true;
    }
    if (iWinWidth < 1200 && isMaxWidth) {
    oWrap.className = 'wrap';
    isMaxWidth = false;
    isMinWidth = true;
    }
    }
    }
    </script>
    </body>
    </html>
  • 相关阅读:
    iOS 的 XMPPFramework 简介
    Swift闭包
    Objective-C类成员变量深度剖析
    iOS Auto Layout
    iOS WIFI
    AppStore提审攻略
    iOS7 修改导航系统默认返回按钮文字及颜色
    iOS Block浅析
    Latency
    Charles抓包工具的使用
  • 原文地址:https://www.cnblogs.com/fengluzheweb/p/5485688.html
Copyright © 2020-2023  润新知