Apply CSS to Content Page in Asp.NET

前端 未结 3 1794
感情败类
感情败类 2020-12-14 09:07

Normally when we are using Master/Content style pages, we apply the css to Master page so every page child of the master page can use the style but I don\'t want this,I want

3条回答
  •  無奈伤痛
    2020-12-14 09:47

    Normally I put a content placeholder in the head section of the master page. That way any content page can add extra css/js/etc references to the head of the page.

    In your master page put the following

    
      ... title, meta tags, js and css links ...
      
    
    

    Then in your pages you can include extra elements in the head using this

    
     
    
    

提交回复
热议问题