简体   繁体   English

如何在 paypal 卡支付字段中禁用填充

[英]How to disable padding in paypal card payments fields

I have a problem with paypal card payments fields.我对 paypal 卡付款字段有疑问。 As you can see padding is very big in them and i don't now why.正如你所看到的,填充在它们中非常大,我现在不知道为什么。 I tried to zero the padding in all possible places but it didn't help.我试图在所有可能的地方将填充归零,但它没有帮助。 Any idea how i can do this?知道我该怎么做吗?

照片

Code look like this:代码如下所示:

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

> TRY THIS!

body {
   margin: 0;
   padding: 0;
}

Do one thing.做一件事。 Open Developer Console (Ctrl+shift+I ) in your chrome browser.在 chrome 浏览器中打开开发者控制台(Ctrl+shift+I )。

Right click on each field and inspect.右键单击每个字段并检查。 See whether that is padding or height and adjust accordingly.看看那是填充还是高度并相应地调整。

Also, sometimes there is a CSS being applied from some other CSS file.此外,有时会从其他一些 CSS 文件应用 CSS。 Use !important to cross-check whether that is the case.使用!important来交叉检查是否是这种情况。

That's all I can say as of now as per your information provided in the question:)根据您在问题中提供的信息,到目前为止我只能说这些:)

UPDATE: Demo of Developer Console:更新:开发者控制台演示: 在此处输入图像描述

Always do this step, when something seems broken or not as per requirment.当某些东西似乎损坏或不符合要求时,请始终执行此步骤。

Okay, the only way it works is to make an element height 20px, but that still doesn't fix the problem how to adjust this padding without constant value好的,唯一可行的方法是使元素高度为 20px,但这仍然不能解决如何在没有恒定值的情况下调整此填充的问题

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

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