我有一个登录页面,中间有登录字段,在 . 如何创建此表的反射效果?我想在这个广场下有一个有点距离的另一个,就像它一样,但只显示背景,而不是控件。所以我试图在它下面再做一张桌子,但我只想展示它的 10%。这可以做到吗?
据我所知,已经尝试过渐变,但看起来不太好:
<table>
<tr>
<td align="center" valign="top">
<table>
<tbody>
<tr>
<td class="loginContent">
<asp:ContentPlaceHolder runat="server" ID="rightContent">
</asp:ContentPlaceHolder>
</td>
</tr>
<tr class="lineBreak15">
</tr>
<tr>
<td class="loginContentReflection">
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
.loginContent
{
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
width: 500px;
height: 300px;
background-color: #f08409;
}
.loginContentReflection
{
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
width: 500px;
height: 50px;
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmY2MwMiIgc3RvcC1vcGFjaXR5PSIwLjMiLz4KICAgIDxzdG9wIG9mZnNldD0iMjglIiBzdG9wLWNvbG9yPSIjZjhkMzQwIiBzdG9wLW9wYWNpdHk9IjAuMyIvPgogICAgPHN0b3Agb2Zmc2V0PSI4NCUiIHN0b3AtY29sb3I9IiNlOWUwYmIiIHN0b3Atb3BhY2l0eT0iMCIvPgogICAgPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjZTVlNGRlIiBzdG9wLW9wYWNpdHk9IjAiLz4KICA8L2xpbmVhckdyYWRpZW50PgogIDxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9InVybCgjZ3JhZC11Y2dnLWdlbmVyYXRlZCkiIC8+Cjwvc3ZnPg==);
background: -moz-linear-gradient(top, rgba(255,204,2,0.3) 0%, rgba(248,211,64,0.3) 28%, rgba(233,224,187,0) 84%, rgba(229,228,222,0) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,204,2,0.3)), color-stop(28%,rgba(248,211,64,0.3)), color-stop(84%,rgba(233,224,187,0)), color-stop(100%,rgba(229,228,222,0))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(255,204,2,0.3) 0%,rgba(248,211,64,0.3) 28%,rgba(233,224,187,0) 84%,rgba(229,228,222,0) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(255,204,2,0.3) 0%,rgba(248,211,64,0.3) 28%,rgba(233,224,187,0) 84%,rgba(229,228,222,0) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(255,204,2,0.3) 0%,rgba(248,211,64,0.3) 28%,rgba(233,224,187,0) 84%,rgba(229,228,222,0) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(255,204,2,0.3) 0%,rgba(248,211,64,0.3) 28%,rgba(233,224,187,0) 84%,rgba(229,228,222,0) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4dffcc02', endColorstr='#00e5e4de',GradientType=0 ); /* IE6-8 */
}