开发者

Viewing CSS Intellisense in partial views and Content pages - Visual Studio 2010?

开发者 https://www.devze.com 2023-01-21 13:05 出处:网络
I am trying to figure out how to get Intellisense for CSS to render when in a partial view or a content page. Of course I don\'t 开发者_Python百科want it to render a runtime, as the css comes from the

I am trying to figure out how to get Intellisense for CSS to render when in a partial view or a content page. Of course I don't 开发者_Python百科want it to render a runtime, as the css comes from the masterpage.

I found this trick....

<%if (false) {%> <link rel="Stylesheet" href="styles.css"/> <%}%>

But is there a better option?


Same idea, but no code nuggets and language independent:

<link rel="Stylesheet" href="styles.css" runat="server" visible="false" />

0

精彩评论

暂无评论...
验证码 换一张
取 消