在zend中自定义文本框

时间:2017-05-13 12:18:33

标签: php html css zend-framework

              My expected output is this

https://s9.postimg.org/v85i5gm73/required_output.png 但我得到了输出 https://s1.postimg.org/k6vx1h5nj/wrong_output.png 我正在使用zend框架。 我的表格是

    $this->setMethod('post');
    $username = $this->createElement('text','username');
    $username->setLabel('Username')
    ;
    $username->setAttrib("class"," member_login");
    $password = $this->createElement('password','password');
    $password->setLabel('password:')

    $password->setAttrib("class","member_login");

我的观看代码是

<?php echo $this->form; ?>

和css是

   .member_login{
    width: 635px;
    float:left; 
    padding-left:30px;
}

   .member_login input{
    border: 1px solid #ccc;
    color: #999;
    height: 30px;
    margin: 5px 10px;
    padding: 0 5px;
    width: 200px;
}

0 个答案:

没有答案