Media queries for each browser

前端 未结 5 1758
清酒与你
清酒与你 2020-12-31 19:58

I want to resize my input field as per browser. can I write media query for each browser so separate width for input field on separate browser, like for mozilla it will have

相关标签:
5条回答
  • 2020-12-31 20:21

    Media queries are media queries, not browser queries. They are there to test certain properties of the viewport, device or display. There are no media features that let you test for a certain browser.

    0 讨论(0)
  • 2020-12-31 20:29

    Inorder to have specific CSS for each browser,you may need to use browser specific hacks

    Check the following article

    http://www.paulirish.com/2009/browser-specific-css-hacks/

    Hope this helps.

    0 讨论(0)
  • 2020-12-31 20:34

    If you want to do this you should be able to find something on browserhacks.com which has a bunch of code samples to explain how to get a browser with css media queries so for IE you might do something like this.

    @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {}

    This works because the only browser that those rules will apply on is Internet explorer

    0 讨论(0)
  • 2020-12-31 20:39

    http://www.paulirish.com/2009/browser-specific-css-hacks/

    Browser specific hack is the solution for it!!!

    0 讨论(0)
  • 2020-12-31 20:39

    if you want you use conditional CSS: http://www.conditional-css.com/advanced

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