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
相关问答:
美工在IE6下做的html页,里面用到了CSS样式 我在IE7下用visual studio 2008做aspx页,利用了上面的页面布局,我只是在vs.net下写代码 现在页面在IE7下能正常运行,可是在IE6里就显示不成样子,看那样子是引用不了 ......
我公司目前承接一个项目,widget方面,时间紧张。需要一位具备这方面技术和能力的朋友来打造团队,共同完成项目。全职、兼职均可。待遇从优。 同时还需要若干这方面的人才,共同完成此项任务,兼职、全职均可 ......
现在正在做ASP.NET 动态生成静态页 现在问题是这样 我的模板页我放在了一个文件夹中 比如Template/Template.html 然后我通过程序自动生成HTML页面 生成的HTML 是放在不同的文件夹下 比如mainFol ......
<div style ="width:538px; height:150px; border:solid 1px gray; padding:10px;"> <div style =" width:230px; height:150px; float ......
用vc 读取html文件怎么得到css里面定义的字体样式。比如我网页的一段代码为: <style type="text/css"> <!-- .STYLE7 {font-weight: bold; font-family: "宋体"; color: #F ......