zoukankan      html  css  js  c++  java
  • 浏览器字体大小、背景图片

    1.   浏览器字体大小 

    浏览器默认的字体大小是font-size:16px;谷歌浏览器最小字体是10px,其它浏览器是12px

    2.选择器

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

    3.background 背景

      背景颜色 background-color:red;  简写:background:red;

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

    备注

      标签请求外面的资源,有三种属性:herf、src、url

      ie9以下给背景body设置background-color不起作用,需要用bgcolo

           r

      背景图片平铺

        (1)平铺:浏览器默认就是平铺

        (2)不平铺:no-repeat

        (3)平铺x轴或y轴:background-repeat:“repeat-x”;

          

       背景大小

        

        background-size:;属性值有哪些写法?

         可以设置具体的大小:200px  200px;

         auto自适应(一般做属性值)

             背景位置 background-position(也是坐标轴,向下为正、向右为正)

                  

          背景简写

         

        边框 border

          border简写

          

          边框圆角  border-radius  后面的值是具体的数字或百分比

         

        

         

              

  • 相关阅读:
    hdu 1176 免费馅饼
    算法竞赛入门经典训练指南-做题详细记录(更新中)
    poj-3250 Bad Hair Day
    poj-2823 Sliding Window
    2019.7.15-7.20暑假集训总结
    hdu 1754 I hate it
    poj 1611 The Suspects
    hdu 3038 How Many Answers Are Wrong
    hdu 1213 How Many Tables
    POJ 1182 食物链
  • 原文地址:https://www.cnblogs.com/panghexin/p/9636862.html
Copyright © 2011-2022 走看看