html - How to write CSS Conditional Rules for Safari? -


hi have troubles "margin" in mozilla, explorer, safari , chrome ios.

for mozilla , explorer solved with

/*styles firefox*/ @-moz-document url-prefix() {     .box img {         width: 100%;     }  .box .info{     margin-left: -70% !important;} }  /* styles ie10*/ @media screen , (-ms-high-contrast: active), (-ms-high-contrast: none) {     .box img {         width: 100%;     }      .box .info{    margin-left: -70% !important;} } 

what safari?

should work safari 6.1+, amend styles suit:

@media screen , (min-color-index:0) and(-webkit-min-device-pixel-ratio:0) { @media {     .box img {         width: 100%;     }  .box .info{     margin-left: -70% !important;     } }} 

Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -