.net 给前台元素设置样式

       this.box.Attributes["style"] = "display:block";
            this.box.Attributes.Add("style", "display:block");
<div class="box" id="box" runat="server">
    </div>
原文地址:https://www.cnblogs.com/mchuang/p/5889951.html