How to use the entire widescreen to display a web page? I'm using bootstrap
PHP中文网
PHP中文网 2017-06-26 10:49:47
0
2
775

The following is an example. The red part corresponds to the current blank space of my website. I want to use this part of the space, that is, make the normal structure wider, but I don’t know how to do it.

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(2)
我想大声告诉你

Change the outermost layout element .container to .container-fluid to convert the fixed-width grid layout into a 100%-width layout.

Not only used for root elements, but also if you want 100% width inside.
See: http://v3.bootcss.com/css/#gr...

Please note that structures such as internal rows also need attention.

<p class="container-fluid">
  <p class="row">
      <p class="col-xs-12 col-md-8">.col-xs-12 .col-md-8</p>
      <p class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</p>
  </p>
</p>
伊谢尔伦

Replace class="container" with class="container-fluid"

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!