zoukankan      html  css  js  c++  java
  • css的背景和边框

    背景--background

      1,背景颜色

         background-color:颜色;简写为 background:颜色;

      2,背景图片

         background-image:url(“路径”)简写为background:url(“路径”)

      3,背景平铺

         1)平铺      浏览器默认

         2)不平铺  background-repeat:no-repeat

         3)只平铺X轴  background-repeat:repeat-x

         4)只平铺Y轴  background-repeat:repeat-y

      4,背景大小

         background-size:数字px  数字px        auto自适应

      5,背景位置

         background-position:__px __px/__% __%/英文     x轴向右为正,y轴向下为正

      *背景简写

        background:颜色 图片 平铺 位置

    边框---border

      边框简写: border:颜色 粗细 样式

      边框圆角:border:数字/百分比

  • 相关阅读:
    高中信息技术《算法与程序设计VB(选修)》知识要点
    信息技术选修一总结
    文学给人以相爱的力量
    雾霾
    杯子
    递归
    死锁
    高精度计算练习1
    高精度加法的优化
    字符串函数与过程
  • 原文地址:https://www.cnblogs.com/bokeyanghao/p/9637208.html
Copyright © 2011-2022 走看看