문제

I have no problem styling the background color of textboxes, on PC it's ok but on iPhone the style for dropdown box doesn't take effect.

Css:

input[type=text],
input[type=submit],
select {
  background-color:#272822;
}

enter image description here

도움이 되었습니까?

해결책

I've added -webkit-appearance: none; to your code.

Example

다른 팁

You could try using jquery form styling - this might work better cross platform. The one i often use is: http://uniformjs.com/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top