My understanding is that all Bootstrap-styled elements must exist inside a <div class="container">
element. But sometimes I see Bootstrap examples where there are multiple "containers":
<div class="container">
<!-- Blah, GUI stuff, blah -->
</div>
...
<div class="container">
<!-- Blah, more GUI stuff, blah -->
</div>
My questions:
- When would you ever need a single HTML page with multiple "container divs"? What benefit does this offer as opposed to just putting the entire body inside one big "container div"?
- Would you ever want to nest "container divs" inside other ones? When/why?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…