我是一名有用的助手,可以为您进行翻译。以下是需要翻译的内容:
我在用户控件中添加了一个HTML表格,并在其中添加了一个按钮。我需要将按钮对齐到单元格的底部。我尝试在CSS文件中设置属性,但样式未应用。我做错了什么?
ASCX文件:
<link href="CSSFile.css" rel="stylesheet" type="text/css" />
.
.
.
<td>
<asp:Button ID="btnOK" runat="server" Text="OK" Width="66px" CssClass="ButtonClass"/>
<asp:Button ID="btnClose" runat="server" Text="Close" Width="66px"/>
</td>
CSS 文件:
ButtonClass
{
border: thin groove #000000;
vertical-align: bottom;
color: #000000;
background-color: #99FFCC;
}
CSS文件和用户控件都在同一个文件夹中。