关于css切图,谁能解析一下? - Web 开发 / HTML(CSS)
关于css切图,谁能解析一下?是什么意思 有什么区别
下面能截取图片某一部分显示。 这个 0 108 这些数字是怎么定的,以图片的哪里为原点?
background:url(../images/foot_point.jpg) no-repeat 0 6px;
background: url(../images/lrtk.png) no-repeat 100% -234px;
background: url(../images/lrtk.png) repeat-x 0 -207px;
background: url(../images/lrtk.png) no-repeat 50% -144px;
background: url(../images/lrtk.png) no-repeat 0 -108px;
background: url(../images/lrtk.png) no-repeat 0 -36px;
都用 图片 左上角那个点 算起
background: url(../images/lrtk.png) no-repeat 0 -36px; 截取的是图片的那一部分?
图片横向从0开始,纵向从36px开始截图。
有点和margin的值差不多的意思。
{{
相关问答:
display:inline-block;
overflow:hidden;(网络上查找是影藏溢出,但是测试起来感觉不太明白)
position:relative;(绝对定位,不知道对不对)
position:absolute;
这四个属性在CSS里面出现频率比较高,高手指点 ......
群里有没会CSS的高手。。。我在JSP页面中使用link连接CSS样式表,ul li标签总不起作用。直接把CSS定义放到JSP页面就能正常显示,是什么问题呢(在外部CSS表中定义的BODY标签能应用上)
css表:
.logo {
MARGIN: ......
VBScript code:
while x<100
response.write "<div>xxxx</div>"
x= x+1
wend
循环输出 html代码
代码总是以下面的形式那样 在一行上的
HTML code:
<div>xxxx</div> ......
我这样写就没问题
#cp1 img{magin:5px;}
#cp2 img{magin:5px;}
#cp3 img{magin:5px;}
我想精简代码,用下面的写法,就出错了,是不是语法有问题?
#cp1,#cp2,#cp3 img{magin:5px;}
是语法有问题,你的写法相 ......