How to add media attribute to ASP.NET MVC4 style bundle

后端 未结 1 1812
伪装坚强ぢ
伪装坚强ぢ 2021-02-18 23:17

In ASP.NET MVC4 application, style bundle is created using

    bundles.Add(new StyleBundle(\"~/css/pos.css\")
        .Include(\"~/css/mypos.css\"));


        
相关标签:
1条回答
  • 2021-02-18 23:19

    Within your Razor page you would add the following:

    <link href="@Styles.Url("~/css/pos.css")" rel="stylesheet" type="text/css" media="print" />
    
    0 讨论(0)
提交回复
热议问题