【发布时间】:2014-05-02 11:23:45
【问题描述】:
我尝试将不透明边框应用于具有渐变背景的 div。然而,结果出乎我的意料,因为顶部和底部的颜色似乎已经交换了。
html:
<div>
Test
</div>
css:
div {
background: -moz-linear-gradient(center top , blue, red);
background: -webkit-linear-gradient(top , blue, red);
border: 1px solid rgba(0, 0, 0, 0.1);
}
【问题讨论】:
标签: html css background gradient rgba