twitter启动 - 井背景颜色 [英] twitter bootstrap - well background color

查看:77
本文介绍了twitter启动 - 井背景颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图改变引导井的背景颜色和不透明度。我有以下CSS:

I'm trying to change the background color and opacity of a bootstrap well. I've got the following CSS:

.well {
    opacity: 0.9; /* opacity [0-1] */
    -moz-opacity: 0.9; /* opacity [0-1] */
    -webkit-opacity: 0.9; /* opacity [0-1] */
    background-color: blue;
}

透明度是工作,但背景颜色似乎没有改变。任何想法?

The opacity is working, but the background-color does not seem to change. Any ideas?

编辑小提琴,以备您想要播放-a-round

Edit fiddle added in case you want a play-a-round

推荐答案

或者你可以将它写在一行css中作为rgba。

Or you could write it in one line of css as rgba.

.well{
    background: rgba(0, 0, 255, 0.9);
}

这篇关于twitter启动 - 井背景颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆