简体   繁体   English

如何摆脱移动版 wufoo 表单上的多余空间?

[英]How do I get rid of the excess space on the mobile version of a wufoo form?

On google chrome, the mobile version of the wufoo form is showing up exactly how I want it to (see picture below):在 google chrome 上,wufoo 表单的移动版本完全按照我想要的方式显示(见下图):

enter image description here在此处输入图像描述

But on my iPhone, there is an excess space that I can't seem to get rid of at the top of the form (see picture below):但是在我的 iPhone 上,表格顶部有一个我似乎无法摆脱的多余空间(见下图):

enter image description here在此处输入图像描述

When I messaged WuFoo about this problem, they said they do not provide help for custom css issues.当我向 WuFoo 发送有关此问题的消息时,他们说他们不为自定义 css 问题提供帮助。 Since my google chrome developer tools doesn't show the issue, I'm stuck.由于我的谷歌浏览器开发者工具没有显示问题,我被卡住了。 Does anyone know how I can get rid of this excess space?有谁知道我怎样才能摆脱这个多余的空间?

Thanks!谢谢!

If I've understood your question correctly, you want to remove the padding-top: 20vh from your html -element when the page is displayed on a narrow device.如果我正确理解了您的问题,则当页面显示在窄设备上时,您希望从html元素中删除padding-top: 20vh

In that case, this CSS should do what you want.在这种情况下,这个 CSS 应该做你想做的事。 I've reused the same @media -query that is used on your page already, with the assumption that that is the size you define to be for mobile devices .我已经重用了与您的页面相同的@media -query,并假设这是您为移动设备定义的大小。

@media only screen and (max-width: 480px) {
    html {padding-top: 0}
}

If you add this code snippet to the end of your CSS file (probably wufoo.css ), it should remove the space above the form on mobile devices.如果将此代码片段添加到 CSS 文件(可能是wufoo.css )的末尾,它应该会删除移动设备上表单上方的空格。

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

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