setting display property in the code behind

后端 未结 3 1037
孤城傲影
孤城傲影 2021-01-04 17:46

How can i set the display property to block in the code behind?



pnl.Attrib         


        
相关标签:
3条回答
  • 2021-01-04 18:31

    You can also do

    pnl.Style["display"] = "block";
    
    0 讨论(0)
  • 2021-01-04 18:42

    pnl.Attributes.Add("style", "display:block"); is correct ... got it.

    0 讨论(0)
  • 2021-01-04 18:44

    Try this :

    pnl.Style.Add("display", "block"); 
    
    0 讨论(0)
提交回复
热议问题