返回插入图片 背景......登陆

插入图片 背景图片

稻草人2019-06-28 11:02:51274

<!DOCTYPE html>

<html>

    <head>

        <meta charset="utf-8">

        <style>

div {

width: 17px;

height: 13px;

background: url(images/jd.png) no-repeat;

background-position: 0 -388px;  /* 因为背景图片往上移动,所以是负值 */

margin: 100px auto;

}

p {

width: 56px;

height: 49px;

background: url(images/jd.png) no-repeat;

background-position: 0 -438px;  /* 因为背景图片往上移动,所以是负值 */

}

        </style>

    </head>

    <body>

    <!-- 1. 插入图片  margin  padding  float position 移动图片  大小就是width

    2. 背景图片  background 来控制  size大小   background-position 位置 -->

    <div>

     

    </div>

<p></p>

    </body>

</html>


最新手记推荐

• 用composer安装thinkphp框架的步骤• 省市区接口说明• 用thinkphp,后台新增栏目• 管理员添加编辑删除• 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消回复发送