2014-09-27 88 views

回答

3

狙击你必须包括bootstrap在您的项目并添加到您的输入class="form-control"

希望这有助于

+0

是其工作....日Thnx了很多...这是自举 – 2014-09-27 10:40:00

+0

很高兴听到工作第一次IM,你是欢迎! – emmanuel 2014-09-27 10:40:22

1

很可能只是包括一个CSS

http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css

HTML


<input type="text" class="input-style" placeholder="Text input"></input> 

CSS


.input-style { 
    width: 400px; 
    height: 35px !important; 
    margin-bottom: 10px !important; 
    padding: 6px 12px !important; 
    font-size: 14px; 
    line-height: 1.42857143; 
    color: #555; 
    -webkit-border-radius: 6px; 
    -moz-border-radius: 6px; 
    border-radius: 6px; 
} 

.input-style { 
 
    width: 400px; 
 
    height: 35px !important; 
 
    margin-bottom: 10px !important; 
 
    padding: 6px 12px !important; 
 
    font-size: 14px; 
 
    line-height: 1.42857143; 
 
    color: #555; 
 
    -webkit-border-radius: 6px; 
 
    -moz-border-radius: 6px; 
 
    border-radius: 6px; 
 
}
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css" rel="stylesheet"/> 
 
<input type="text" class="input-style" placeholder="Text input"></input>