gpt4 book ai didi

xhtml - 验证错误 "Value Error : background-position Too many values or values are not"如何解决?

转载 作者:行者123 更新时间:2023-11-28 16:15:14 28 4
gpt4 key购买 nike

为什么验证会返回此错误。如何解决?

ul#navigation li#navigation-3 a.current      

Value Error : background-position Too many values or values are not recognized : -164px -164px -36px -164px -164px -36px

这是错误屏幕。

alt text http://shup.com/Shup/321632/110323115458-My-Desktop.png

CSS

ul#navigation { height: 36px; left: 300px; list-style-image: none; list-style-position: outside; list-style-type: none; position: relative; top: 74px; width: 603px; }

ul#navigation li { display: inline; }

ul#navigation li a { height: 36px; float: left; text-decoration: none; }

ul#navigation li a:link, ul#navigation li a:visited {font-family:Arial; color:#595959; font-size:1.1em; font-weight:bold }

ul#navigation li a:hover, ul#navigation li a:active {color:#404040}

ul#navigation li a span { display:block;
float:left;
padding-left:8px;
padding-top:14px;}

ul#navigation li#navigation-1 a { width: 53px; background: url(../images/menu-sprite.jpg) no-repeat 0px 0; }


ul#navigation li#navigation-1 a:active, ul#navigation li#navigation-1 a:hover { background-position: 0px -36px; }

ul#navigation li#navigation-1 a.current { background-position: 0px 0px -36px; }

ul#navigation li#navigation-2 a { width: 111px; background: url(../images/menu-sprite.jpg) no-repeat -53px 0; }

ul#navigation li#navigation-2 a:active, ul#navigation li#navigation-2 a:hover { background-position: -53px -36px; }

ul#navigation li#navigation-2 a.current { background-position: -53px -53px -36px; }

ul#navigation li#navigation-3 a { width: 78px; background: url(../images/menu-sprite.jpg) no-repeat -164px 0; }

ul#navigation li#navigation-3 a:active, ul#navigation li#navigation-3 a:hover { background-position: -164px -36px; }

ul#navigation li#navigation-3 a.current { background-position: -164px -164px -36px; }

ul#navigation li#navigation-4 a { width: 100px; background: url(../images/menu-sprite.jpg) no-repeat -242px 0; }

ul#navigation li#navigation-4 a:active, ul#navigation li#navigation-4 a:hover { background-position: -242px -36px; }

ul#navigation li#navigation-4 a.current { background-position: -242px -242px -36px; }

ul#navigation li#navigation-5 a { width: 88px; background: url(../images/menu-sprite.jpg) no-repeat -342px 0; }

ul#navigation li#navigation-5 a:active, ul#navigation li#navigation-5 a:hover { background-position: -342px -36px; }

ul#navigation li#navigation-5 a.current { background-position: -342px -342px -36px; }

ul#navigation li#navigation-6 a { width: 96px; background: url(../images/menu-sprite.jpg) no-repeat -430px 0; }

ul#navigation li#navigation-6 a:active, ul#navigation li#navigation-6 a:hover { background-position: -430px -36px; }

ul#navigation li#navigation-6 a.current { background-position: -430px -430px -36px; }

ul#navigation li#navigation-7 a { width: 77px; background: url(../images/menu-sprite.jpg) no-repeat -526px 0; }

ul#navigation li#navigation-7 a:active, ul#navigation li#navigation-7 a:hover { background-position: -526px -36px; }

ul#navigation li#navigation-7 a.current { background-position: -526px -526px -36px; }

最佳答案

你有这个:

ul#navigation li#navigation-3 a.current { background-position: -164px -164px -36px; }

定位背景只需要两个值,去掉一个就可以验证。

更新:您的所有当前选择器上都有这个,从所有选择器中删除第三个值,就可以了。

关于xhtml - 验证错误 "Value Error : background-position Too many values or values are not"如何解决?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2697917/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com