zoukankan      html  css  js  c++  java
  • CSS Reset.css

    • reset.css 常用
    /* 基础样式重置 */
    html, body, div, span, applet, object, iframe,
    h1, h2, h3, h4, h5, h6, p, blockquote, pre,
    a, abbr, acronym, address, big, cite, code,
    del, dfn, em, img, ins, kbd, q, s, samp,
    small, strike, strong, sub, sup, tt, var,
    b, u, i, center,
    dl, dt, dd, ol, ul, li,
    fieldset, form, label, legend,
    table, caption, tbody, tfoot, thead, tr, th, td,
    article, aside, canvas, details, embed,
    figure, figcaption, footer, header, hgroup,
    menu, nav, output, ruby, section, summary,
    time, mark, audio, video {
        margin: 0;
        padding: 0;
        border: 0;
        font-size: 100%;
        font: inherit;
        vertical-align: baseline;
    }
    /* HTML5 display-role reset for older browsers */
    article, aside, details, figcaption, figure,
    footer, header, hgroup, menu, nav, section {
        display: block;
    }
    html,body{
    	position: relative;
    	margin: 0;
    	padding: 0;
    	 100%;
    	height: 100%;
    	font-size: 16px;
    	font-family: "Microsoft Yahei","Hiragino Sans GB","Helvetica Neue",Helvetica,tahoma,arial,Verdana,sans-serif, PingFangSC-Regular;
    	color: #383838;
    	background: #F7F7F9;
    }
    body {
        line-height: 1;
    }
    ol, ul {
        list-style: none;
    }
    blockquote, q {
        quotes: none;
    }
    blockquote:before, blockquote:after,
    q:before, q:after {
        content: '';
        content: none;
    }
    table {
        border-collapse: collapse;
        border-spacing: 0;
    }
    a{
    	 100%;
    	height: 100%;
        color: #383838;
        text-decoration: none;
    }
    a:hover{
        color:  #007CC9;
        border-color: #007CC9;
    }
    
    /*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/  
    ::-webkit-scrollbar  
    {  
         8px;  
        height: 8px;  
        background-color: #F5F5F5;  
    }  
      
    /*定义滚动条轨道 内阴影+圆角*/  
    ::-webkit-scrollbar-track  
    {  
        -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);  
        border-radius: 0px;  
        background-color: #FFF;  
    }  
      
    /*定义滑块 内阴影+圆角*/  
    ::-webkit-scrollbar-thumb  
    {  
        border-radius: 0px;  
        -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);  
        background-color: #AAA;  
    }  
    
    /*输入框占位*/
    input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
    	/* WebKit, Blink, Edge */
    	color: #999999;
    }
    
    input:-moz-placeholder, textarea::-webkit-input-placeholder {
    	/* Mozilla Firefox 4 to 18 */
    	color: #999999;
    }
    
    input::-moz-placeholder, textarea::-moz-placeholder {
    	/* Mozilla Firefox 19+ */
    	color: #999999;
    }
    
    input:-ms-input-placeholder, textarea:-ms-input-placeholder {
    	/* Internet Explorer 10-11 */
    	color: #999999;
    }
    
    
    • 字体
    font-family: Microsoft JhengHei,Microsoft YaHei,STHeiti SC,SimHei,Pingfang SC,Lantinghei SC,Helvetica Neue,Helvetica,sans-serif;
    
    font-family: PingFangSC-Regular;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    
  • 相关阅读:
    开发应用资料大全
    shutil库文件的操作
    搭建appium自动化测试环境
    python实现语音录入识别
    go解析markdown转成html
    go指定分隔符格式化时间
    go语言中使用正则表达式
    django_websocket实现简单聊天室
    PyQt5显示日期选择框,获取日期保存文件
    python解决迅雷下载限制的方法
  • 原文地址:https://www.cnblogs.com/KevinTseng/p/12148959.html
Copyright © 2011-2022 走看看