使用Bootstrap创建HTML文档,并编写多个专栏。任务是使用Bootstrap将控件设置为整个高度上的一列。做到这一点的方法是利用左栏中的另一个div内部。向内div应该是位置:绝对。
例子:
HTML
How to set one column control
over height in Bootstrap ?
GeeksforGeeks
A Computer Science portal for geeks.
It contains well written, well thought
and well explained computer science
and programming articles, quizzes and
many other contents.
A Computer Science portal for geeks.
It contains well written, well thought
and well explained computer science
and programming articles, quizzes and
many other contents.
A Computer Science portal for geeks.
It contains well written, well thought
and well explained computer science
and programming articles, quizzes and
many other contents.
A Computer Science portal for geeks.
It contains well written, well thought
and well explained computer science
and programming articles, quizzes and
many other contents.
A Computer Science portal for geeks.
It contains well written, well thought
and well explained computer science
and programming articles, quizzes and
many other contents.
输出:
在上面的示例中,
position属性用于相对于其父级位置放置组件并更改其周围的布局。
溢出属性指示在内容溢出元素框的情况下应该发生的情况。此属性指示在元素的内容足够大以适合指定区域时是剪切内容还是包含滚动条。