zoukankan      html  css  js  c++  java
  • 常用的 css reset,基本的base.css

    @charset "utf-8";
     html {
      overflow-x: hidden;
      overflow-y: auto;
     }
     /*隐藏横向滚动,垂直滚动根据内容自适应(去除IE默认垂直滚动条)*/
     
     body,
     h1,
     h2,
     h3,
     h4,
     h5,
     h6,
     hr,
     p,
     blockquote,
     dl,
     dt,
     dd,
     ul,
     ol,
     li,
     pre,
     fieldset,
     lengend,
     button,
     select,
     input,
     textarea,
     th,
     td {
      /* 清除内外边距 */
     
      margin: 0;
      padding: 0;
     }
     body,
     button,
     input,
     select,
     textarea {
      /* 设置默认字体 */
     
      font: 12px/1 Microsoft YaHei, Helvetica, Arial, SimSun, Arial, Helvetica, sans-serif, Tahoma;
     }
     h1 {
      font-size: 18px;
     }
     h2 {
      font-size: 16px;
     }
     h3 {
      font-size: 14px;
     }
     h4,
     h5,
     h6 {
      font-size: 100%;
     }
     ul,
     ol {
      list-style: none;
     }
     /* 重置列表元素 */
     /* 重置文本格式元素  */
     
     a {
      text-decoration: none;
     }
     a:hover {
      text-decoration: none;
      color: #ff6600;
     }
     q:before,
     q:after {
      content: '';
     }
     /* 重置表单元素 */
     
     legend {
      color: #000;
     }
     fieldset,
     img {
      border: none;
     }
     button,
     input,
     select,
     textarea {
      font-size: 100%;
      /* 使得表单元素在 ie 下能继承字体大小 */
     }
     /* 重置表格元素 */
     
     table {
      border-collapse: collapse;
      border-spacing: 0;
     }
     /* 重置 hr */
     
     hr {
      border: none;
      height: 1px;
     }

     ====================

    以上参考网络资源整理。

  • 相关阅读:
    FZU 2129 子序列个数(DP)题解
    FZU 2082 过路费(树链剖分 边权)题解
    2019牛客多校第一场E ABBA(DP)题解
    ajax解决csrf的跨站请求伪造
    django实现简单的跨域请求数据
    python 与jQuery之间的接口对应
    GO语言的初次学习
    Django一些常用参数的设置
    auth认证模块
    Django中间件模块的使用
  • 原文地址:https://www.cnblogs.com/leshao/p/4691159.html
Copyright © 2011-2022 走看看