当前位置:编程学习 > C#/ASP.NET >>

css背景图无法显示

.onShow
{
    background:url(images/onShow.gif) no-repeat; 
    padding-left:25px; 
font-size: 12px;
line-height:22px; 
vertical-align:middle;
}
.onFocus
{
    background:#E9F0FF url(images/onFocus.gif) no-repeat; 
    padding-left:25px; 
font-size: 12px;
line-height:22px; 
vertical-align:middle;
}
.onError
{
    background:#FFF2E9 url(images/onError.gif) no-repeat;
    padding-left:25px;
font-size: 12px;
line-height:22px; 
vertical-align:middle;
}
.onCorrect
{
    background:#E9FFEB url(images/onCorrect.gif) no-repeat;
    padding-left:25px;
font-size: 12px;
line-height:22px; 
vertical-align:middle;
}
.onLoad
{
    background:#E9FFEB url(images/onLoad.gif) no-repeat 3px 3px;
    padding-left:25px;
font-size: 12px;
line-height:22px; 
vertical-align:middle;


路径是.根目录 css\style\validator.css
图片是根目录 images\图片;

css倒是可以用,背景颜色倒是会变比如说E9FFEB  这样的颜色会自动变.我不知道哪儿错了.
用的vs2008. --------------------编程问答-------------------- 图片路径错误 --------------------编程问答--------------------
引用 1 楼 imshi 的回复:
图片路径错误

最开始的时候我是用的 background:#E9FFEB url(../images/onCorrect.gif) no-repeat;

就是因为没有效果,才改成这样来问的.我很郁闷.
补充:.NET技术 ,  ASP.NET
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,