如何在地址文本框中添加Textarea
How to add Textarea in address text box
我正在尝试在文本框中添加文本区域,但我无法应用相同的位置,如何在我的代码中添加文本区域我想在下面添加文本框。
<div class="field">
<label for="billing:telephone" class="required"><em>*</em><?php echo $this->__('Mobile Number') ?></label>
<div class="input-box">
<input type="tel" name="billing[telephone]" value="<?php echo $this->escapeHtml($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->quoteEscape($this->__('Telephone')) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('telephone') ?>" id="billing:telephone" />
<textarea name="" id="" cols="30" rows="10">
</textarea>
</div>
我不确定我的回答是否有帮助,但你为什么不尝试使用 table 标签..
这是一个例子..
<div class ="field">
<table>
<tr>
<td>
<label for="billing:telephone" class="required"><p>* Mobile Number</p>
</label>
</td>
</tr>
<tr>
<td>
<input type="tel" name="billing[telephone]" value="" id="billing telephone" placeholder="your phone number"/>
</td>
</tr>
<tr>
<td><textarea name="" id="" cols="30" rows="10"></textarea></td>
</tr>
</table>
</div>
cheer 的朋友..
试试这个
.input-box{
padding: 20px 0;
}
.input-box textarea {
margin: 30px 0;
}
<div class="field">
<label for="billing:telephone" class="required"><em>* Mobile Number</em></label>
<div class="input-box">
<input type="tel" name="billing[telephone]" value="" id="billing:telephone" placeholder="mobile number"/><br>
<textarea name="" id="" cols="30" rows="10"></textarea>
</div>
我正在尝试在文本框中添加文本区域,但我无法应用相同的位置,如何在我的代码中添加文本区域我想在下面添加文本框。
<div class="field">
<label for="billing:telephone" class="required"><em>*</em><?php echo $this->__('Mobile Number') ?></label>
<div class="input-box">
<input type="tel" name="billing[telephone]" value="<?php echo $this->escapeHtml($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->quoteEscape($this->__('Telephone')) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('telephone') ?>" id="billing:telephone" />
<textarea name="" id="" cols="30" rows="10">
</textarea>
</div>
我不确定我的回答是否有帮助,但你为什么不尝试使用 table 标签.. 这是一个例子..
<div class ="field">
<table>
<tr>
<td>
<label for="billing:telephone" class="required"><p>* Mobile Number</p>
</label>
</td>
</tr>
<tr>
<td>
<input type="tel" name="billing[telephone]" value="" id="billing telephone" placeholder="your phone number"/>
</td>
</tr>
<tr>
<td><textarea name="" id="" cols="30" rows="10"></textarea></td>
</tr>
</table>
</div>
cheer 的朋友..
试试这个
.input-box{
padding: 20px 0;
}
.input-box textarea {
margin: 30px 0;
}
<div class="field">
<label for="billing:telephone" class="required"><em>* Mobile Number</em></label>
<div class="input-box">
<input type="tel" name="billing[telephone]" value="" id="billing:telephone" placeholder="mobile number"/><br>
<textarea name="" id="" cols="30" rows="10"></textarea>
</div>