css - 在 Twitter Bootstrap 中调整缩略图上的 CSS 功能区

标签 css twitter-bootstrap

我正在尝试在此图片面板上创建一个 css 功能区。但是色带一直出现在屏幕的右上角。 这是我的 HTML 代码

<li class="span4">
                <div class="thumbnail">

</div>

                  <img src="img/placeholder-360x200.jpg" alt="product name">
                  <div class="caption">
                    <h3>Product name</h3>
                    <p>
                      Few attractive words about your product.Few attractive words about your product.
                      Few attractive words about your product.Few attractive words about your product.
                    </p>
                  </div>
                  <div class="widget-footer">
                    <p>
                      <a href="#" class="btn btn-primary">Buy now</a>&nbsp;
                      <a href="product.html" class="btn">Read more</a>
                    </p>
                  </div>
                </div>

可以找到CSS代码here .

以及我正在尝试构建的内容的屏幕截图 Trying to put a ribbon on each image thumbnail

最佳答案

试试这个

http://jsfiddle.net/UBfCE/68/

   .ribbon-wrapper{
    margin:0 0 0 212px;
    position:absolute;
    }

关于css - 在 Twitter Bootstrap 中调整缩略图上的 CSS 功能区,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17830595/

相关文章:

html - 为什么我在 Google Chrome 的导航栏中看到 Logo 的轮廓?

html - col-打破我们的包装

javascript - Durandal 和 Knockout : do a css binding to body element

css - 如何根据显示器分辨率让屏幕响应

javascript - 如何在 bootstrap 的同一页面上为按钮单击替换 div 内容

css - 生产中的 Rails 应用程序不加载图像?

css - 渐进增强的标签式导航。 (仅使用 css)

javascript - 在 AngularJS 应用程序中的多个 ng-views 上使用 Bootstrap Datetimepicker DOM 对象

javascript - 识别 Javascript 中的 html 数据属性

html - Twitter Bootstrap 模态插入背景图像