• CSS样式重置


    一、样式重置(公共样式)

      1.新浪:

        html, body, ul, li, ol, dl, dd, dt, p, h1, h2, h3, h4, h5, h6, form, fieldset, legend, img { margin:0; padding:0; }

        fieldset, img { border:none; }

        img{display: block;}

        address, caption, cite, code, dfn, th, var { font-style:normal; font-weight:normal; }

        ul, ol,li { list-style:none; } 

        body { color:#333; font:12px/20px "SimSun","宋体","Arial Narrow",HELVETICA; background:#fff;/* overflow-y:scroll;*/ overflow-x:hidden;}

        a { color:#666; text-decoration:none; }

        a:visited { color:#666; }

        a:hover, a:active, a:focus { color:#ff8400; text-decoration:underline; }

      2.腾讯

        body,ol,ul,h1,h2,h3,h4,h5,h6,p,th,td,dl,dd,form,fieldset,legend,input,textarea,select{margin:0;padding:0} 

        body{font:12px "宋体","Arial Narrow",HELVETICA;background:#fff;}

        a{color:#172c45;text-decoration:none} 

        a:hover{color:#cd0200;text-decoration:underline} 

        em{font-style:normal}

        li{list-style:none}

        img{border:0;vertical-align:middle} 

        table{border-collapse:collapse;border-spacing:0}

        p{word-wrap:break-word}

        .ind{text-indent:2em} 

        .ind10{text-indent:10px;}

        .noborder{border:0;}

        .left{floaT:left;}

        .right{float:right;}

        .clearBoth{clear:both;}

        .font12{font-size;12px;}

      3.搜狐

        body{font-family:"5B8B4F53","Arial Narrow",HELVETICA;text-align:center;margin:0 auto;padding:0;background:#FFF;font-size:12px;color:#333;} 

        body > div{text-align:center;margin-right:auto;margin-left:auto;} 

        div,form,ul,ol,li,span,p{margin:0;padding:0;border:0;}

        img,a img{border:0;margin:0;padding:0;}

        h1,h2,h3,h4,h5,h6{margin:0;padding:0;font-size:12px;font-weight:normal;}

        ul,ol,li{list-style:none}

        table,td,input{font-size:12px;padding:0} /* 默认链接颜色 */ 

        a{outline-style:none;color:#333;text-decoration:none}

        a:hover{color:#c00;text-decoration:underline;}

    Why do you work so hard? Because the things I want to buy are expensive and the places I want to go are far away. The person I like is very excellent.
  • 相关阅读:
    12套有用的免费 PSD 格式 Android UI 素材
    使用 Canvas 和 JavaScript 创建逼真的下雨效果
    在网页设计中使用漂亮字体的16个优秀例子
    Koala – 开源的前端预处理器语言图形编译工具
    BackgroundCheck – 根据图片亮度智能切换元素样式
    经典网页设计:18个示例展示图片在网页中的使用
    TogetherJS – 酷!在网站中添加在线实时协作功能
    30个令人惊叹的灵感来自自然风光的网站设计《下篇》
    太有才了!创新的街头涂鸦手绘欣赏【中篇】
    15款美丽的设备模板,帮助展示你的 APP
  • 原文地址:https://www.cnblogs.com/liufuyuan/p/10243424.html
Copyright © 2020-2023  润新知