<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" type="topic" style="task" id="pref-css" xml:lang="zh_CN">

  <info>
    <link type="guide" xref="index#pref"/>
    <revision pkgversion="3.10" date="2013-07-06" status="candidate"/>
    <revision pkgversion="3.33" date="2019-04-08" status="candidate"/>
    <revision pkgversion="40.alpha" date="2021-01-12" status="candidate"/>

    <credit type="author copyright">
      <name>Gordon Hill</name>
      <email its:translate="no">caseyweederman@gmail.com</email>
      <years>2013</years>
    </credit>
    <credit type="copyright editor">
      <name>Ekaterina Gerasimova</name>
      <email its:translate="no">kittykat3756@gmail.com</email>
      <years>2013</years>
    </credit>
    <credit type="copyright editor">
      <name>Federico Bruni</name>
      <email its:translate="no">fede@inventati.org</email>
      <years>2021</years>
    </credit>

    <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>

    <desc>覆盖用于显示网页的主题。</desc>
  </info>

  <title>自定义 CSS</title>

  <p><app>Web</app> 允许你设置一个自定义的 CSS，以改变你访问的每个网页的外观和感觉。你可能会想通过这种方式，来设置首选的字体大小或配色方案。</p>

  <steps>
    <item>
      <p>Press the menu button in the top-right corner of the window and select
      <guiseq><gui style="menuitem">Preferences</gui><gui style="tab">Appearance</gui></guiseq>.</p>
    </item>
    <item>
      <p>Under the Style section, switch <gui>Use Custom Stylesheet</gui> to on.</p>
    </item>
    <item>
      <p>点击笔的图标。</p>
    </item>
    <item>
      <p>你的默认文本编辑器将打开。添加你的自定义 CSS 并保存该文件。</p>
    </item>
  </steps>

  <p>一个自定义的 CSS 的例子：</p>
  <code>
body{
    /*让所有内容上下颠倒*/
    -webkit-transform: rotate(180deg);
}
</code>

  <p>Your custom CSS will override the style sheet on pages which you visit
  after you enable it.</p>

</page>
