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; }
  • 相关阅读:
    121.买卖股票 求最大收益1 Best Time to Buy and Sell Stock
    409.求最长回文串的长度 LongestPalindrome
    202.快乐数 Happy Number
    459.(KMP)求字符串是否由模式重复构成 Repeated Substring Pattern
    326.是否为3的平方根 IsPowerOfThree
    231.是否为2的平方根 IsPowerOfTwo
    461.求两个数字转成二进制后的“汉明距离” Hamming Distance
    206.反转单链表 Reverse Linked List
    448. 数组中缺少的元素 Find All Numbers Disappeared in an Array
    常见表单元素处理
  • 原文地址:https://www.cnblogs.com/haodayikeshu/p/5229468.html
Copyright © 2011-2022 走看看