2011年4月20日 星期三

CSS-background-position的基本位移觀念

一樣是寫給自己的
background: url(../img/Measure_css.jpg) no-repeat;
background-position : 0px -82px;(左右,上下,以左上角為基準點0px)
這裡位移觀念是以左上角為基準點0px

所以我一開始自以為這樣行的通結果失敗
background-position : top 82px;
or
background-position : left 82px;

目前這樣單用top left不是很明瞭

沒有留言:

張貼留言