我使用 javascript作为圆角,它仅在我单击文本框时才有效。如果文本框失去焦点,则文本框再次变为矩形,我错了,代码如下
<script src="Jquery/rounded-corners.js" type="text/javascript"></script>
<asp:TextBox CssClass="rounded rc5 FilterCriteria" ID="txtSearch" runat="server"></asp:TextBox>
<ajaxToolkit:FilteredTextBoxExtender ID="ftxtSearch" runat="server" TargetControlID="txtSearch" FilterType="Numbers" />
<style>
.rounded {
background:white;
white-space:nowrap;
zoom:1;
}
.rc5 {
border-radius: 5px 5px 5px 5px;
}
</style>