易学问答
  • 首页
  • 话题
  • 动态
  • 专家
  • 文章
  • 作者
  • 公告
  • 更多
    • 积分规则
登录 或 注册
  • 首页
  • 话题
  • 动态
  • 专家
  • 文章
  • 作者
  • 公告
  • 积分规则
 发表新帖
发表新帖

Bootstrap 3: Text overlay on image

后端 未结
关注
 4  582
灰色年华
灰色年华 2020-12-08 07:02

I am using bootstrap 3 thumbnail as follows:

\"...\"
4条回答
  •  攒了一身酷
    攒了一身酷 (楼主)
    2020-12-08 07:54

    try the following example. Image overlay with text on image. demo

    ...

    Robots!

    Lorem ipsum dolor sit amet

    css

    .post-content {
        background: rgba(0, 0, 0, 0.7) none repeat scroll 0 0;
        opacity: 0.5;
        top:0;
        left:0;
        min-width: 500px;
        min-height: 500px; 
        position: absolute;
        color: #ffffff; 
    }
    
    .thumbnail{
        position:relative;
    
    }
    .details {
        position: absolute; 
        z-index: 2; 
        top: 0;
        color: #ffffff; 
    }
    

    0 讨论(0)
    查看其它4个回答
    提交评论

    •  加载中...
 看不清?
提交回复
热议问题