蛋糕PHP和输入字段的样式



在我的calls/index.ctp中有以下代码。当我点击评论字段时,光标从字段的中间开始,而不是在最开始,无论输入的是什么,都超过了字段的宽度,一旦达到字段的宽度,就不会转到下一行。有人能帮忙吗?我想让光标从输入字段的最开始开始,如果它达到了字段设置的宽度,它应该自动进入下一行。

调用/index.ctp:

<div class="divm centerdiv">
<?php echo $this->Form->create('Call'); ?>
    <fieldset>
        <legend><?php echo __('Add Call Details'); ?></legend>
            <?php
        echo $this->Form->input('call_date',array('required'=>false,'id'=>'datepicker','type'=>'text'));
        echo $this->Form->input('call_time', array('required'=>false));
        echo $this->Form->input('comments', array('style'=>'width:365px; height:100px;','required'=>false, 'id'=> 'comments'));
        echo $this->Form->input('next_call_date',array('required'=>false,'id'=>'datepicker2','type'=>'text'));  echo $this->Form->input('customers_id', array('label' =>'Customer Name','options'=>$customers, 'label'=>'Customer Name', 'required'=>false));
        echo $this->Form->input('employees_id', array('label' =>'Employee name','options'=>$employees, 'label'=>'Employee name', 'required'=>false));
    ?>
    </fieldset>
<?php echo $this->Form->end(__('Submit')); ?>
</div>

style'=>'width:365px; height:100px;这一行就发生过这种情况。

这里有个问题为什么?

在这里你没有增加你的房子大小,你增加了你的道路!!现在你说为什么我家很小?

我想你已经在你的数据库中使用了varchar和文本限制字段。将varchar更改为text并删除长度值。

最新更新