0
我在我的HTML中使用input[type="text"]
或input[type="password"]
,但是當我在iphone上測試代碼時,在頂部顯示內部小陰影。我曾嘗試box-shadow: none;
Iphone輸入字段顯示內部陰影
我在我的HTML中使用input[type="text"]
或input[type="password"]
,但是當我在iphone上測試代碼時,在頂部顯示內部小陰影。我曾嘗試box-shadow: none;
Iphone輸入字段顯示內部陰影
試試這個代碼
input[type="text"], input[type="password"]:-webkit-appearance: none;
您使用的Safari瀏覽器或iOS舊版本的? – gro
@gro'ios 7' – amol
是否嘗試過-webkit前綴,儘管它不應該在iOS 5.0之前需要使用 – gro