【发布时间】:2018-02-16 19:19:16
【问题描述】:
我知道这是一个非常愚蠢的问题,但我已经尝试了所有方法(div 包装器、浮动 div、p 类)并且无法弄清楚。我只是想并排对齐第二列上的“isim & soyisim”字段(这些是姓名和姓氏字段)。我的代码有问题,但我找不到它,这让我发疯。任何帮助将不胜感激。看这里:
http://www.wondercatspopup.com/hesabim/
代码如下:
<p class="form-row form-row-first">
<label style="display:none!important;" for="reg_billing_first_name"><?php _e( 'First name', 'woocommerce' ); ?>
<span class="required">
*
</span>
</label>
<input type="text" class="woocommerce-Input woocommerce-Input--text input-text placeholder" placeholder="İsim *" name="billing_first_name" id="reg_billing_first_name" value="<?php if ( ! empty( $_POST['billing_first_name'] ) ) esc_attr_e( $_POST['billing_first_name'] ); ?>" />
<label style="display:none!important;" for="reg_billing_last_name"><?php _e( 'Last name', 'woocommerce' ); ?><span class="required">*</span></label>
<input type="text" class="woocommerce-Input woocommerce-Input--text input-text placeholder" placeholder="Soyisim *" name="billing_last_name" id="reg_billing_last_name" value="<?php if ( ! empty( $_POST['billing_last_name'] ) ) esc_attr_e( $_POST['billing_last_name'] ); ?>" />
</p>
<p class="form-row form-row-wide">
<label style="display:none!important;" for="reg_billing_phone"><?php _e( 'Phone', 'woocommerce' ); ?></label>
<input type="text" class="woocommerce-Input woocommerce-Input--text input-text placeholder" placeholder="Telefon *" name="billing_phone" id="reg_billing_phone" value="<?php esc_attr_e( $_POST['billing_phone'] ); ?>" />
</p>
<div class="clear"></div>
【问题讨论】:
-
将您的代码添加到问题中。这意味着,如果有人在您的网站消失 5 年后发现此问题,他们仍然可以看到该问题。
-
刚刚添加。感谢您的反馈。