【发布时间】:2016-12-04 11:52:08
【问题描述】:
我有一个弹出窗口,我想给它一个透明的边框。我设置了这些属性:
li.sub-nav ul.megamenu {
position: absolute;
left: 0;
margin-top: 10px;
z-index: 100;
padding-top: 3px;
-moz-background-clip: border; /* Firefox 3.6 */
-webkit-background-clip: border; /* Safari 4? Chrome 6? */
background-clip: border-box;
}
.nav-top-container .megamenu {
background: #005525;
background: rgba(0, 85, 37, .98);
border-top: 1px solid #227b33;
border-bottom: #005525;
border-bottom:8px solid rgba(0, 85, 37, .98);
}
我根据this article添加了background-clip属性,我也尝试将其设置为content和padding,但它不起作用。
【问题讨论】:
-
你能做一个JSFiddle吗?我们需要一种方法来查看您所看到的内容。你的 CSS 有
display: none,这可能是你看不到它的原因。
标签: html css border transparency padding