我想在ASP.NET MVC中使用C#在运行时更改css类? [英] I want to change the css class at runtime using C# in ASP.NET MVC ?
本文介绍了我想在ASP.NET MVC中使用C#在运行时更改css类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在ASP.NET MVC中使用C#在运行时更改css类?
解决方案
string mycss =myClassName; //根据您用来决定课程的任何内容来解决这个问题
< div class =@ mycss>
< / div>
谢谢大家,我得到了答案
这是链接
http://forums.asp.net/t/1060687.aspx?Read+and+Write+CSS+file+from+ASP+ NET
I want to change the css class at runtime using C# in ASP.NET MVC ?
解决方案
string mycss = "myClassName"; // work this out based on whatever you use to decide the class <div class="@mycss"> </div>
Thanks Everyone, I got my answer
here is the link
http://forums.asp.net/t/1060687.aspx?Read+and+Write+CSS+file+from+ASP+NET
这篇关于我想在ASP.NET MVC中使用C#在运行时更改css类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文