如何在以下内容中添加1px solid rgba(255,255,255,0.6)
边框?5px
fieldset
结果应该是这样的:
我只需要它与 Chrome 最新版、Firefox 最新版和 IE 9 兼容。
这是一个JSFiddle,以及我当前的代码:
HTML
<fieldset> </fieldset>
CSS
fieldset
{
background: #3AA0BD;
background: -moz-linear-gradient(top, #3AA0BD 0%, #06446E 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#3AA0BD), color-stop(100%,#06446E));
background: -webkit-linear-gradient(top, #3AA0BD 0%,#06446E 100%);
background: -o-linear-gradient(top, #3AA0BD 0%,#06446E 100%);
background: -ms-linear-gradient(top, #3AA0BD 0%,#06446E 100%);
background: linear-gradient(to bottom, #3AA0BD 0%,#06446E 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3AA0BD', endColorstr='#06446E',GradientType=0 );
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
display: inline-block;
padding: 20px;
/* temp */
height: 60px;
width: 500px;
}
高度和宽度未知。我刚刚在此处添加它们以填写fieldset
.