ASP.NET dynamic change CSS

xiaoxiao2021-03-06  59

In ASP.NET, sometimes it is necessary to dynamically transform CSS, such as sometimes personalized page, can do this

After that, use the following code in the page to replace the CSS.

SUB Page_Load (Sender As Object, E as Eventargs)

IF not (ispostback)

MyStylesheet.attributes.add ("href", "/ css / flostyle.css")

END IF

End Sub

转载请注明原文地址:https://www.9cbs.com/read-84330.html

New Post(0)