按鈕定位數字
.pic a{background:url(icon.jpg) no-repeat -399px -19px;width:16px;height:16px;display:inline-block;position:absolute; top:5px; right:5px;}
.pic a:hover{background-position:-343px -19px;}
其-399px -19px及-343px -19px的4個數字是怎樣算出來的
.pic a{background:url(icon.jpg) no-repeat -399px -19px;width:16px;height:16px;display:inline-block;position:absolute; top:5px; right:5px;}
.pic a:hover{background-position:-343px -19px;}
其-399px -19px及-343px -19px的4個數字是怎樣算出來的
2017-01-04
舉報
2017-01-07
在ps上面將圖片打開 ?將鼠標移到位置上就可以看見x,y軸的坐標了