html - 如何在 Bootstrap 中叠加?

标签 html css twitter-bootstrap twitter-bootstrap-3

我正在使用 bootstrap,我有一个 anchor 标记一些文本,我想将其覆盖在另一个文本区域的一 Angular 。问题是, Bootstrap 列正在浪费空间。下面是 id 现在正在做的事情,突出显示了 div,下面是我希望文本如何流动:

当前

Current

<div id="mainWrapper" class="wrapper">
    <div class="content-main">
        <div class="container-fluid">
            <div class="row">
                <div class="col-xxs-12 col-xs-10">
                    <p>Chuck Norris challenged Spain to a football match and won Chuck Norris can win a game of Connect Four in only three moves. Chuck Norris does not sleep. He waits. The Great Wall of China was originally created to keep Chuck Norris out. It failed miserably, Chuck Norris is the reason why Waldo is hiding, Chuck Norris drives an ice cream truck covered in human skulls. When Chuck Norris went to Vegas, Sinatra sang "Your Way.", Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV Chuck Norris counted to infinity - twice. </p>
                </div>
                <div class="col-xxs-12 col-xs-2 semi-transparent">
                    <a html="www.google.com">Spanish</a>
                </div>
            </div>
        </div>
    </div>
</div>

所需的选项 1(包装)

Desired

所需的选项 2( float 在顶部)

enter image description here

执行此操作的最佳方法是什么?

最佳答案

Bootstrap 有一个用于关闭按钮的类,恰好在您想要的顶部。可能会有用。像这样使用它:

<div class="col-xxs-12 col-xs-10">
    <div class="close">
        <a html="www.google.com">Spanish</a>
    </div>
    <p>Chuck Norris challenged Spain to a football match and won Chuck Norris can win a game of Connect Four in only three moves. Chuck Norris does not sleep. He waits. The Great Wall of China was originally created to keep Chuck Norris out. It failed miserably, Chuck Norris is the reason why Waldo is hiding, Chuck Norris drives an ice cream truck covered in human skulls. When Chuck Norris went to Vegas, Sinatra sang "Your Way.", Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV Chuck Norris counted to infinity - twice. </p>
</div>

您可能可以向它添加另一个类来覆盖它。

关于html - 如何在 Bootstrap 中叠加?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41467294/

相关文章:

html - 使垂直调整大小固定

html - 如何将两个 CSS 规则添加到一个 html 元素

html - 如何有一个粗体标题文本?

php - 000Web 主机 PHP $_SEND

javascript - 无法读取 Bootstrap 模块窗口中未定义输入文件的属性 '0'

html - 如何使用 Bootstrap 让一列跨越多行?

html - 无法在CSS网格中创建一列

python - 使用 Jinja2 的 HTML 模板 - 丢失

html - CSS 无法为棋盘制作动画?

angular - Angular 2/4/5 中的 Bootstrap 轮播事件处理