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

    浏览器默认的字体大小为16px

    谷歌字体最小10px;其它浏览器为12px

    font属性可以继承 如:font-style  color  

    通配符选择器是指所有的标签

    选择器有:子代选择器 后代选择器 class选择器  id选择器  标签选择器  交集选择器  通配符选择器

    background背景

      背景颜色 :background-color 简写为background 

      背景图片: background-image: url(路径) 简写background:url()

     备注:标签请求外面的资源有三种属性  url() src href

    ie9以下给body设置background-color不起作用 需要用bgcolor

    背景图片平铺

    background-repeat

     不平铺:background-repeat:no-repeat

    垂直平铺:background-repeat:repeat-y

    水平平铺:background-repeat:repeat-x

    背景位置:background-position:是坐标轴 右为正 下为正

    边框圆角:border-radius:20px;

  • 相关阅读:
    164-268. 丢失的数字
    163-20. 有效的括号
    Sword 30
    Sword 29
    Sword 27
    Sword 25
    Sword 24
    Sword 22
    Sword 21
    Sword 18
  • 原文地址:https://www.cnblogs.com/zlxl/p/9637332.html
Copyright © 2011-2022 走看看