有人知道怎么做吗?
Theme A
style_for_x.aspx.css
style_for_y.aspx.css
Theme B
style_for_x.aspx.css
style_for_y.aspx.css
或者更好:
Theme A
style_for_all_pages.css
style_for_x.aspx.css
style_for_y.aspx.css
Theme B
style_for_all_pages.css
style_for_x.aspx.css
style_for_y.aspx.css
最佳答案
ASP.NET 主题的问题是所有现有的 CSS 文件都包含在每个页面上。
也许你应该将你的 CSS 文件移动到不同的位置(例如“~/css/ThemeA”)并根据当前页面的名称和当前选定的主题。
关于.net - ASP.NET 主题中每页一个 CSS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2487105/