C # how to modify the css attribute of the foreground DOM in the background
This article mainly shows you "c # background modify foreground DOM css attribute how to use", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "c # background modify foreground DOM css attribute how to use" this article.
Haha
-
Called in the background code like this
Div1.Style ["display"] = "inline"
Note that double quotation marks are used in c #.
Using System.Web.UI.WebControls; has to introduce this namespace.
Style ["background-image"]
= "url (images/bg_active.jpg)"; and so on
The above is all the contents of the article "how to modify the css attribute of the foreground DOM in the background of c #". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!