2017-11-08 3 views
-1

私は2列にcol-xs-3col-xs-9を使用しました。しかし、フォームは右側のすべてのスペースを占めるようには見えません。これをどうすれば解決できますか?ブートストラップ・コラムが全幅を取らない

enter image description here

+1

ここにコードを入力できますか?https://jsfiddle.net/devefrontend/21036h5c/ – saiful

+1

コードを確認する必要があります。イメージ上で私たちは助けができません –

答えて

0

これを試してみてください:画面未満768px広い場合

<!DOCTYPE html> 
 
<html lang="en"> 
 

 
<head> 
 
    <title>Bootstrap Example</title> 
 
    <meta charset="utf-8"> 
 
    <meta name="viewport" content="width=device-width, initial-scale=1"> 
 
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> 
 
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> 
 
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> 
 
</head> 
 

 
<body> 
 

 
    <div class="container-fluid"> 
 
    <h1>Hello World!</h1> 
 
    <p>Resize the browser window to see the effect.</p> 
 
    <p>The columns will automatically stack on top of each other when the screen is less than 768px wide.</p> 
 
    <div class="row"> 
 
     <div class="col-sm-6" style="background-color:lavender;">.col-sm-4</div> 
 
     <div class="col-sm-6" style="background-color:lavenderblush;">.col-sm-4</div> 
 
    </div> 
 
    </div> 
 

 
</body> 
 

 
</html>

列が自動的に互いの上にスタックします。

関連する問題