开发者

Unable to hide elements from CSS using ASP.NET4

i am unable to hide my asp:buttons from CSS. i am using ASP.NET 4

CSS

.Sit开发者_如何学运维eButton
{
    display: none;
    visibility: hidden;
}

HTML

<asp:Button ID="btnFromCalOpen" runat="server" Text=" &gt; " class = "siteButton"   />

Please Help


Change class="siteButton" to CssClass="SiteButton"

CSS is case-sensitive for class names and siteButton is different from SiteButton.

Also in ASP.NET the class is set by CssClass rather than class, however class will still work since ASP.NET will pass through unknown properties to the browser.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜