【发布时间】:2017-08-06 09:43:48
【问题描述】:
我遇到了背景色透明显示为白色的问题
中间一列是 div 'wrapper'
风格为:background: url('../images/layout/bg_wrapper.gif') 0 0 repeat-y;
如果我去控制台输入:
x=document.getElementById('wrapper');
window.getComputedStyle(x, null).getPropertyValue('background-color');
我明白了:
"rgba(0, 0, 0, 0)"
但它的背景显示为白色而不是主体颜色(黄绿色)。
为什么会这样?
谢谢!
【问题讨论】:
标签: css