【发布时间】:2015-01-11 09:30:12
【问题描述】:
我想以这样一种方式使用 Bootstrap 的弹出窗口功能,使窗口在侧边栏中打开,而不是与触发按钮/文本相邻,但我不知道它是如何工作的。我尝试为侧边栏提供一个 ID,并包含属性 data-viewport="#sidebar" 但这似乎不起作用。
我是一名试图为我的班级做点事情的老师,而不是程序员或其他任何东西,所以任何帮助都将不胜感激。
这是我正在寻找的模型:http://i.imgur.com/IYPFlOC.jpg
这是我所拥有的:
<div class="container">
<div class="row">
<div class="col-sm-4">
<div id="sidebar">
Sidebar where the popup window should appear.
</div>
</div>
<div class="col-sm-8">
<p>This is the main content where the <span class="pop"
data-content="Popover Content" data-html="true" data-toggle=
"popover" data-trigger="hover" tabindex="0" title=
"Title">trigger text</span> would be.</p>
</div>
</div>
</div>
【问题讨论】: