zoukankan      html  css  js  c++  java
  • div+css简写原则

    ①font

    简写:

    font:italic small-caps bold 12px/1.5em arial,verdana;

    等效于:

    font-style:italic; font-variant:small-caps; font-weight:bold; font-size:12px; line-height:1.5em; font-family:arial,verdana;

    顺序:font-style | font-variant | font-weight | font-size | line-height | font-family

    (注:简写时,font-size和line-height只能通过斜杠/组成一个值,不能分开写。)

    ②background

    简写:

    background:#fff url(bg.gif) no-repeat fixed left top;

    等效于:

    background-color:#fff; background-image:url(bg.gif); background-repeat:no-repeat; background-attachment:fixed; background-position:left top;

    顺序:background-color | background-image | background-repeat | background-attachment | background-position

    ③margin & padding这些涉及四边的都是:

    一个值=所有的边框;两个值=顶/底边框,两侧边框;三个值=顶边框,两侧边框,底边框;四个值=遵循钟面原则(上、右、下、左)。

  • 相关阅读:
    文件操作fopen
    随机数应用
    随机数
    通过命令行参数打开文件
    命令行参数
    内存分区
    const修饰指针+volatile +restrict
    类型限定词——const
    (app笔记)Appium如何开启、配置、启用
    (app笔记)Memory Fill内存填充
  • 原文地址:https://www.cnblogs.com/beyourself/p/2988978.html
Copyright © 2011-2022 走看看