CSS那个背景图片的坐标怎么设置?怎么计算的?

日期:2018-04-11 20:14:58 人气:1

CSS那个背景图片的坐标怎么设置?怎么计算的?

背影图片的左上角相对当前元素左上角的坐标。 右为X轴正半轴, 下为Y轴正半轴 当前元素左上角坐标为 0,0 默认图片的左上角正对当前元素的左上角 如果图片想向左移 10px; background:url(images/hh.gif) no-repeat -10px 0;} 如果图片想向上移 10px; background:url(images/hh.gif) no-repeat 0 -10px;} 同样 如果图片想向右移 10px; background:url(images
    A+
热门评论