zoukankan      html  css  js  c++  java
  • background示例一

    <!DOCTYPE html>
    <html lang="en">
      <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
        <style>
          div {
              margin: 0px;
              padding: 0px;
          }
          div.box{
               300px;
              height: 300px;
              border:10px double red;
              padding:10px;
              /* 设置背景图片 */
             background-image:url("./source/img/1.jpg");
             /* 设置背景颜色 */
             background-color:aqua;
             /* 设置背景图片大小 */
             background-size:100px auto;
             /* 设置背景图片是否重复 */
             background-repeat: no-repeat;
             /* 设置背景图片的位置  两位参数x轴 y轴 */
             background-position: 10px 0px;
             /* 从内边距处开始计算原点 */
             background-origin:padding-box;
             /* 设置背景范围 */
             background-clip:content-box;
             
          }
        </style>
      </head>
      <body>
        <div class="box"></div>
      </body>
    </html>
  • 相关阅读:
    阶乘
    如何利用”七牛云”在UEditor实现图片的上传和浏览
    ueditor保存出现 从客户端(Note="<p>12345</p>")中检测到有潜在危险的 Request.Form 值
    配置进程外的Session
    数据库增加索引
    判断HTML中的checkbox是否被选中
    Oracle 配置文件目录
    Oracle 游标
    Oracle 分区表的索引、分区索引
    Oracle 索引
  • 原文地址:https://www.cnblogs.com/kukai/p/12307639.html
Copyright © 2011-2022 走看看