0
我不知道为什么这不显示额外的边框,你能看到我在做什么错了吗?CSS多边框
.loginSubmit {
width: 100px;
height: 100px;
background: #e0e0e0;
border: 1px solid #dedede;
color: #555555;
font-weight: bold;
text-shadow: white 0px 1px;
/* firefox */
background: -moz-linear-gradient(top, #eaeaea, #f0f0f0 100%);
-moz-border-radius: 5px;
/* webkit */
background: -webkit-gradient(linear, 0 0, 0 100%, from(#eaeaea), to(#f0f0f0));
-webkit-border-radius: 5px;
position: relative;
}
.loginSubmit:before {
width: 98px;
height: 98px;
content '';
position: absolute;
border: 1px solid black;
}
@Mamix我不能让它工作:/是否因为它使用了一个提交按钮? – ole 2011-03-16 19:06:59
@ole:''确实不起作用。 'input'-tag之前是否有伪类?你有没有检查是否可行? – Marnix 2011-03-16 19:17:54
@Mamix hm我不知道你对伪类有什么意思,你的意思是如果提交没有伪类“之前”? – ole 2011-03-16 20:07:17