zoukankan      html  css  js  c++  java
  • 2016/3/1 淘宝 腾讯 网易 css初始化代码 以及最基础的初始化

    淘宝官网(http://www.taobao.com/)样式初始化

     1 body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, button, input, textarea, th, td { margin:0; padding:0; } 
     2  body, button, input, select, textarea { font:12px/1.5tahoma, arial, 5b8b4f53; } 
     3 h1, h2, h3, h4, h5, h6{ font-size:100%; } 
     4  address, cite, dfn, em, var { font-style:normal; } 
     5  code, kbd, pre, samp { font-family:couriernew, courier, monospace; } small{ font-size:12px; }
     6  ul, ol { list-style:none; }
     7  a { text-decoration:none; } 
     8  a:hover { text-decoration:underline; }
     9  sup { vertical-align:text-top; }
    10  sub{ vertical-align:text-bottom; }
    11  legend { color:#000; }
    12  fieldset, img { border:0; }
    13  button, input, select, textarea { font-size:100%; }
    14  table { border-collapse:collapse; border-spacing:0; }

    腾讯QQ官网(http://www.qq.com)样式初始化

    1 body,ol,ul,h1,h2,h3,h4,h5,h6,p,th,td,dl,dd,form,fieldset,legend,input,textarea,select{margin:0;padding:0} 
    2  body{font:12px"宋体","Arial Narrow",HELVETICA;background:#fff;-webkit-text-size-adjust:100%;}
    3  a{color:#2d374b;text-decoration:none} 
    4  a:hover{color:#cd0200;text-decoration:underline} 
    5 em{font-style:normal} 
    6 li{list-style:none} 
    7  img{border:0;vertical-align:middle} 
    8  table{border-collapse:collapse;border-spacing:0}
    9  p{word-wrap:break-word}

    网易官网(http://www.163.com/)样式初始化

    1 html {overflow-y:scroll;} 
    2  body {margin:0; padding:29px00; font:12px"5B8B4F53",sans-serif;background:#ffffff;}  div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,blockquote,p{padding:0; margin:0;} 
    3  table,td,tr,th{font-size:12px;} 
    4 li{list-style-type:none;} 
    5  img{vertical-align:top;border:0;} 
    6 ol,ul {list-style:none;} 
    7  h1,h2,h3,h4,h5,h6{font-size:12px; font-weight:normal;}  address,cite,code,em,th {font-weight:normal; font-style:normal;}

    最简单的 css初始化方式   可以用*代替

    1 body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, p, blockquote, th, td { margin:0; padding:0; }
  • 相关阅读:
    dada的GCD
    涛神的城堡
    手机信号
    涛涛的Party
    壮壮的数组
    不安全字符串
    gdb core 调试多线程
    makefile $@, $^, $<, $? 表示的意义
    KMP算法的next[]数组通俗解释
    【原创】支持同时生成多个main函数 makefile 模板
  • 原文地址:https://www.cnblogs.com/haodayikeshu/p/5229468.html
Copyright © 2011-2022 走看看