<style type="text/css">
.thumbnail{
display:block;
position: relative;
z-index: 0;
}
.thumbnail:hover{
background-color: transparent;
z-index: 50;
}
.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: lightyellow;
padding: 2px;
left: -1000px;
border: 1px gray;
visibility: hidden;
color: black;
text-decoration: none;
}
.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 1px;
}
.thumbnail:hover span{ /*CSS for enlarged image on hover*/
visibility: visible;
top: 10px;
left: 25px; /*position where enlarged image should offset horizontally */
}
</style>
<td>
<asp:HyperLink ID="HyperLink1" runat="server" CssClass="thumbnail" ForeColor="#008CE2"
NavigateUrl='<%# FormatURLCate(DataBinder.Eval(Container.DataItem, "CateID").ToString()) %>'
Target="_blank">
<span>
<asp:Image ID="Image2" runat="server" AlternateText="美食图" BorderWidth="0" Height="300"
ImageUrl='<%# FormatURLCate(DataBinder.Eval(Container.DataItem, "CateID").ToString()) %>' /></span>
<asp:Image ID="Image1" runat="server" Height="48" ImageUrl='<%# FormatURLCate(DataBinder.Eval(Container.DataItem, "CateID").ToString()) %>'
Width="70" /></asp:HyperLink></td>
CSS提示框
最新推荐文章于 2024-06-11 06:01:33 发布