gpt4 book ai didi

css - 重力形式的响应按钮

转载 作者:行者123 更新时间:2023-11-28 07:06:40 25 4
gpt4 key购买 nike

我最近开始在我的基于 wordpress 的网站上使用 Gravity Forms。我对我的表单做了一些基本的样式设计,它似乎在桌面浏览器上运行良好。在移动设备上,表单会调整大小但按钮看起来很奇怪。如何将按钮限制在移动设备的外包装中,使其看起来与表单字段的宽度相同?

这是页面的链接:http://46.4.68.131/gravity-forms/ .此外,这是自定义按钮的 CSS。

body .gform_wrapper .gform_footer input[type=submit] {
font-size:12px !important;
background-color:#e4685d !important;
-moz-border-radius:5px !important;
-webkit-border-radius:5px !important;
border-radius:5px !important;
display:inline-block !important;
color:#ffffff !important;
font-size:16px !important;
padding:8px 16px !important;
text-decoration:none !important;
}

这是我为响应性而试验但没有成功的代码。任何帮助,将不胜感激。谢谢。

@media only screen and (max-width: 767px) { 
body .gform_wrapper .gform_footer input[type=submit] {
width: 50% !important;
}
}

最佳答案

添加框大小:边框框;因此您的填充包含在尺寸中。

关于css - 重力形式的响应按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32910489/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com