php - Twitter Bootstrap Responsive not work -
i'm doing testing twitter bootstrap , 1 of important things me is responsive. doing tests browser , when gets size changes size of input in layout.
below picture of big screen , tail off when:
this code i'm using layout zendframework 1:13:
zend form:
$login = new zend_form_element_text('ds_nick_usr'); $login->setlabel('login:') ->setrequired(true) ->addfilter('striptags') ->addfilter('stringtrim') ->setoptions(array( 'placeholder'=>'usuario', 'class'=>'span1' )); $login->removedecorator('label'); $login->removedecorator('htmltag'); $password = new zend_form_element_password('ds_password_usr'); $password->setlabel('senha:') ->setrequired(true) ->addfilter('striptags') ->addfilter('stringtrim') ->setoptions(array( 'placeholder'=>'senha', 'class'=>'span2', )); $password->removedecorator('label'); $password->removedecorator('htmltag'); $submit = new zend_form_element_submit('logar'); $submit->setoptions(array( 'class'=>'btn btn-inverse', )); $this->addelements(array($login, $password, $submit)); $this->setdecorators(array( 'formelements', array('htmltag', array('tag'=>'div', 'class'=>'form-horizontal')), 'form', )); $this->setmethod('post');
my view:
all bootstrap css files included!
generated html:
thank in advance!
change html structure to
<div class="container-fluid"> <div class="row-fluid"> <div class="span12"> <form class="form-horizontal form-signin" method="post"> ... </form> </div> </div> </div>
updated support bootstrap 3.x versions.
<div class="container-fluid"> <div class="row"> <!-- col-xs-12 or col-sm-12 or col-md-12 or col-lg-12 --> <div class="col-xs-12"> <form class="form-horizontal form-signin" method="post"> ... </form> </div> </div> </div>
Comments
Post a Comment