开发者

Drop down background url in Safari Issue

开发者 https://www.devze.com 2022-12-11 02:40 出处:网络
selectBox.selectCSS { background: url(/Images/replacementSelectBackg开发者_StackOverflow社区round.png) top left no-repeat height:auto;
selectBox.selectCSS
    {
        background: url(/Images/replacementSelectBackg开发者_StackOverflow社区round.png) top left no-repeat height:auto;
    }

I have an issue in Safari only where the image is not rendering on top of the drop down list.

It will only work if I remove the height:auto attribute, but then it won't work in Chrome.

Any ideas?


Your example doesn't compute. There's no element called selectBox in HTML. Is this some custom XML you're applying the CSS to, or is it supposed to be HTML? If so, the HTML element name for a "drop down" is select. You're also missing a semicolon (;) between no-repeat and height to separate the two property assignments. I guess that syntax error is what's causing the problem in Safari.

0

精彩评论

暂无评论...
验证码 换一张
取 消