易截截图软件、单文件、免安装、纯绿色、仅160KB

CSS验证错误无法解决,

CSS code:
#headLogo{height:84px; background:url(../images/logoBanner.png) no-repeat right;}
#headLogo div{background:url(../images/logo.png) no-repeat left; height:84px;}



32  #headLogo  无效数字 : background  语法错误  [empty string]
33 #headLogo div 无效数字 : background 语法错误 [empty string]
请问这是什么原因?
我觉得没错,是不是软件的什么地方出问题了?定位是不是要两个属性?
把整体代码发出来看看?


引用
背景定位最好把2个定位属性全写上.比如这样写,就能通过验证了.

CSS code

    #headLogo{height:84px; background:url(../images/logoBanner.png) no-repeat  right center;} #headLogo div{background:url(../images/logo.png) no-repeat left center; height:84px;}



谢谢。还有一个问题,就是这个background-position默认是什么属性?

background-position 默认是 left top ,也就是左上角 0 0 的位置.这个属性可能用关键字(left right top bottom center)表示,也可以用具体数值表示,还可以用百分比表示.具体详见CSS手册.

设置背景图片,width 与 height这两个属性都要,背景的定位要控制就两个值都要写,一个都不写就默认。

如 #header { width:960px; height:100px; background:#ccc url(/images/header.png) repeat-x left bottom;}

#header { width:960px; height:100p


相关问答:

css的效果问题,怎么实现不了啊

CSS code:
body {
}
#x
{
width:1024px;
height:768%;
background-color:Red;
position:relative;
}
#x.top
{ position:absolute;
width:800px;
height:100px;
top:0px ......

简洁实用的鼠标经过变色的box(纯CSS制作)

简洁实用的鼠标经过变色的box效果,纯CSS制作,下面是源代码,可以另存为 .html 格式查看,或者在最下面有在线演示的地址。
HTML code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//E ......

请问DIV+CSS 这个效果怎么做?


请问一下  用一个DIV 可以做到这样的效果吗 ?
不知这个算不算一个DIV?

HTML code:

<style type="text/css">
.demo {
border: 1px solid #8fb9d1; ......

CSS实现页框问题

   
<div style ="width:538px; height:150px; border:solid 1px gray; padding:10px;">
        <div style =" width:230px; height:150px; float ......

请教火狐css变形的问题

请问为什么火狐很多时候都会变形呢

比方这个.proc { width:680px; height:auto; float:left; clear:both;}
在IE里面如果有的图片是 700px的宽,那么会自动的缩小

可是在火狐里面 就自动放大了,width ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号