LoginSignup
1
2

More than 5 years have passed since last update.

【SharePoint 2013】CSS ファイルをマスター ページに適用する

Last updated at Posted at 2018-11-15
1 / 5

※サイトコレクションの SiteAssets フォルダ配下に custom.css ファイルを置いた場合を例に説明します。


発行機能をアクティブ化していない場合

サイトテンプレートを使用するなどの理由で、発行機能をアクティブ化しない場合は、 マスターページを直接編集します。

<head runat="server">
  <!-- 以下の行を追加 -->
  <SharePoint:CssRegistration Name="<%$SPUrl:~SiteCollection/SiteAssets/custom.css%>" runat="server" />
</head>

発行機能をアクティブ化する場合

発行機能をアクティブ化している場合は、サイトの設定から指定します。

  1. [サイトの設定] > [外観] > [マスターページ] > [代替 CSS の URL] の項目を開く。
  2. ラジオボタンの [このサイト、およびこのサイトを継承するすべてのサイトで使用される CSS ファイルを指定する] を選択する。
  3. 共通の CSS ファイルを指定する。

Capture0000[1].JPG


参考サイト

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2