前提・実現したいこと
Bootstrapでレスポンシブのサイトを作っているのですが、画面の最大幅を設定するべきでしょうか?
それとも設定しなくて良いでしょうか?
回答よろしくおねがします。
該当のソースコード
<head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous"> <style> body{ max-width: calc(100% - 100px); /*max-width:1200px;*/ margin-right: auto; margin-left : auto; } </style> </head> <body> <div class="row bg-info "> <div class="col-md-8 bg-danger">left</div> <div class="col-md-4 bg-prime">right</div> </div> </body>html,css
1ソースコード
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/04/15 09:30