关注前端开发
关注用户体验

IOS下移除按钮原生样式 -webkit-appearance

IOS环境下的按钮都是经过美化的,但通常我们在设计web app的时候不需要这些看上去老土的样式,所以,去除这些显得很有必要。

下面这句代码就是重置这些样式的:

-webkit-appearance: none;

通常,我们在写移动端的web开发时,会zaicommon.css中添加以下CSS代码来:

input[type=button]{
	-webkit-appearance:none;
	outline:none
}

嗯,就这些,虽简单,但很实用!

赞(4)
未经允许不得转载:大前端 » IOS下移除按钮原生样式 -webkit-appearance
分享到: 更多 (0)

评论 23

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #18

    I was able to find good info from your blog articles.

  2. #17

    there are so many used cars in our city, i usually bought used Ford cars because they are well built**

    Nonton Anime2周前 (05-10)回复
  3. #16

    Enjoyed the post.

    Huidinstituut1个月前 (04-19)回复
  4. #15

    Thanks for this nice post. …

    Ontstekingen1个月前 (04-18)回复
  5. #14

    Everything is very open with a clear description of the challenges. It was really informative. Your website is very useful. Thanks for sharing!

    Apex Legends Octane1个月前 (04-14)回复
  6. #13

    Way cool! Some very valid points! I appreciate you penning this article and also the rest of the website is extremely good.

    DMC51个月前 (04-12)回复
  7. #12

    It’s hard to find experienced people on this subject, but you sound like you know what you’re talking about! Thanks

    DMC51个月前 (04-11)回复
  8. #11

    Right here is the perfect web site for anybody who wants to understand this topic. You understand a whole lot its almost tough to argue with you (not that I personally will need to…HaHa). You certainly put a new spin on a subject which has been written about for many years. Wonderful stuff, just great!

    DMC52个月前 (03-31)回复
  9. #10

    I really appreciate this post. I have been looking all over for this! Thank goodness I found it on Bing. You’ve made my day! Thanks again

    my singing monsters2个月前 (03-28)回复
  10. #9

    Hello! .order viagra internet , order cialis , tadalafil , buy cheap viagra , ,

    Donnell Schulter3个月前 (03-11)回复
  11. #8

    试一下

    qianrenzhang4年前 (2015-02-10)回复
  12. #7

    今天正好用上~~ 😆

    修远兮6年前 (2013-12-16)回复
  13. #6

    😛

    glen7年前 (2012-11-26)回复
  14. #5

    就是把focus时候的边框去掉吧

    fengbingji7年前 (2012-09-18)回复
    • 不是的,是IOS本身给按钮有样式,而我们不需要,去之

      浩子7年前 (2012-09-18)回复
  15. #4

    :mrgreen: 学习了 .

    graybobo7年前 (2012-09-17)回复
  16. #3

    测试一下啊

    test7年前 (2012-09-17)回复
  17. #2

    我坐沙发! 😀

    蓝天7年前 (2012-09-15)回复
  18. #1

    给个demo嘛

    大猫7年前 (2012-09-15)回复

themebetter 国内更好的WordPress主题服务商

立即前往