2014-09-27 82 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>