无效的属性值? [英] Invalid property value?

查看:69
本文介绍了无效的属性值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用我的搜索栏作为背景,使用css。但铬继续给出错误无效的财产价值。这是奇怪的,因为我的导航栏是完全相同的代码,但不会给出错误?
http://ispiked.net/tests/

I'm trying to give my search bar a background, using css. But chrome keeps giving the error "invalid property value". Which is weird because my navigation bar is the exact same code but doesn't give the error? http://ispiked.net/tests/

推荐答案

这是因为您还指定了不重复以及背景图片。改变你的代码:

This is because you've also specified "no-repeat" along with your background image. Alter your code to:

background: url(images/searchbar.png) no-repeat;

这篇关于无效的属性值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆