【发布时间】:2022-02-13 01:24:21
【问题描述】:
我无法访问此表单的 html,所有主题化都必须通过加载到显示表单的 iframe 中的 css 来完成。是的,这段代码很烦人,也是不好的做法,但它就是这样。
<input
class="give-input required"
type="text"
name="give_first"
autocomplete="given-name"
placeholder="First Name"
id="give-first"
value=""
required=""
aria-required="true"
style="padding-left: 33px!important;" tabindex="1">
以下版本(以#give-first 开头并添加了更高的特异性)不起作用
#give-first-name-wrap input#give-first.give-input.required[style]
{
padding-left:0;
}
我没有将 jQuery 加载到 iframe 中的钩子,非常烦人!
感谢所有建议。
【问题讨论】:
标签: javascript jquery css wordpress