• 学习日记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>
  • 相关阅读:
    数据排序
    (一)Spark简介Java&Python版Spark
    醒 了
    祈福
    可以接受失败,但不选择放弃
    烦中偷乐
    Yahoo! UI Library入门
    文章内容的简单优化方法
    Asp.Net网站速度优化
    ASP.NET实现GZIP压缩优化
  • 原文地址:https://www.cnblogs.com/fengluzheweb/p/5485688.html
Copyright © 2020-2023  润新知