如何在Web用户控件中引用样式表中的样式
css.css样式表文件
#lb_login,#lb_reg,#lb_State,#lb_Search,#lb_Default
{
font-size: 10pt;
vertical-align: middle;
color: White;
font-family: 宋体;
text-align: center;
text-decoration: none;
}
top.ascx是这样子的
<%@ Control Language= "C# " AutoEventWireup= "true " CodeFile= "top.ascx.cs " Inherits= "top " %>
<style type= "text/css ">
<link rel= "stylesheet " type= "text/css " href= "css.css "> ??????????????是这样子引用吗?
</style>
<table class= "a ">
<tr>
<td align= "left " style= "width: 100%; background-image: url(images/bg2.gif); " valign= "middle ">
</td>
</tr>
<tr>
<td align= "left " style= "width: 100%; " valign= "middle ">
<asp:Image ID= "Image1 " runat= "server " ImageUrl= "~/images/bg1.jpg " /> </td>
</tr>
<tr>
<td align= "left " style= "width: 100%; background-image: url(images/bg2.gif); font-size: 10pt; color: white; text-decoration: none; " valign= "middle ">
<asp:LinkButton ID= "lb_login " PostBackUrl= "login.aspx " text= "登陆 " runat= "server " CssClass= "LinkButton "> </asp:LinkButton> |
<asp:LinkButton ID= "lb_reg " PostBackUrl= "reg.aspx " Text= "注册 " runat= "server "> </asp:LinkButton> |
<asp:LinkButton ID= "lb_Default " PostBackUrl= "~/def