CSS background-image issue for <select> &

后端 未结 3 1097
情深已故
情深已故 2020-12-11 08:29

HTML


                        
    
提交评论

  • 2020-12-11 09:13

    Like the previous post: color comes before image url. in stead of rgba(0,0,0,0) you better use the word "transparent", as that would be better compatible.

    0 讨论(0)
  • 2020-12-11 09:19

    Its not that easy to change form element's style.. each browser has it's own way to render and create those elements. Some browsers will accept having a background image inside your select, others won't.

    A simple technique is to add a default color, so the browser will render the color if it cant render the image.

    background: #c3c3c3 url(http://www.3dtuning.ru/img/design/gallery-back.png) repeat-x 0 0;
    

    so this way, firefox users will see a background image (something that always looks ugly, in my opinion) and the rest of the browsers will display with a gray background.

    Hope this helps

    0 讨论(0)
  • 提交回复
    热议问题