简体   繁体   English

从仅在Safari上而不是在Chorme和firefox上出现的自适应页面中删除WhiteSapce页边距

[英]Remove WhiteSapce margin from responsive Page which is coming only on Safari not on Chorme , firefox

I have developed a Responsive page with the help of @media query . 我已经在@media query的帮助下开发了一个响应式页面。 now when i check my page on iphone 6+ then there is some unwanted white space margin coming . 现在,当我在iPhone 6+上检查我的页面时,就会出现一些不需要的空白。

but page is working fine on chorme , firefox browser (developer mode also). 但是页面在chorme和firefox浏览器上也可以正常工作(也为开发人员模式)。

is there any CSS hack for safari so that i can remove that unwanted Whitespace margin from my page . Safari是否有CSS hack,这样我就可以从页面中删除不需要的空白边距。

i have used below code in my responsive CSS 我在响应式CSS中使用了以下代码

When this happens to me i was able to fix it by removing this from my stylesheet 当发生这种情况时,我可以通过从样式表中删除此问题来对其进行修复

*{
    padding: 0
}

Another thing is WebKit stylesheet contains following 'margin' ,'padding' properties 另一件事是WebKit样式表包含以下'margin','padding'属性

-webkit-margin-before:
-webkit-margin-end:
-webkit-margin-after:
-webkit-margin-start:

-webkit-padding-before:
-webkit-padding-end:
-webkit-padding-after:
-webkit-padding-start:

You can use this and customize accordingly for safari 您可以使用它并相应地自定义野生动物园

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM