From 96f39ebd20f99279e0c6766cb4eadb64e84d6bf8 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Sun, 6 Feb 2022 18:25:00 +0900 Subject: CSS Generated Content の記事とプロパティを移行 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/css/quotes/index.md | 139 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 files/ja/web/css/quotes/index.md (limited to 'files/ja/web/css/quotes/index.md') diff --git a/files/ja/web/css/quotes/index.md b/files/ja/web/css/quotes/index.md new file mode 100644 index 0000000000..4138ffcf98 --- /dev/null +++ b/files/ja/web/css/quotes/index.md @@ -0,0 +1,139 @@ +--- +title: quotes +slug: Web/CSS/quotes +tags: + - CSS + - CSS プロパティ + - CSS 生成コンテンツ + - Reference + - ウェブ + - レイアウト + - 生成コンテンツ +translation_of: Web/CSS/quotes +--- +
{{CSSRef}}
+ +

quotesCSS のプロパティで、引用符がどのように表示されるかを設定します。

+ +
{{EmbedInteractiveExample("pages/css/quotes.html")}}
+ + + +

構文

+ +
/* キーワード値 */
+quotes: none;
+quotes: auto;
+
+/* <string> 値 */
+quotes: "«" "»";           /* open-quote および close-quote をフランス語の引用符に設定 */
+quotes: "«" "»" "‹" "›";   /* 2レベルの引用符を設定 */
+
+/* グローバル値 */
+quotes: inherit;
+quotes: initial;
+quotes: unset;
+
+ +

+ +
+
none
+
{{cssxref("content")}} プロパティの open-quote および close-quote の値が引用符を生成しません。
+
auto
+
選択された用途に設定された言語の値 (すなわち、 {{htmlattrxref("lang")}} 属性) で使用される適切な引用符が使用されます。
+
[<string> <string>]+
+
open-quote および close-quote を表す {{cssxref("<string>")}} の1つ以上の組。最初の組は、引用符を表示する要素が入れ子になった際の、最上層のものの引用符を表す。以下、順次下位レベルの引用符に対応する。
+
+ +

形式文法

+ +{{csssyntax}} + +

+ +

基本的な引用符

+ +
<q>To be or not to be. That's the question!</q>
+
+ +
q {
+  quotes: '"' '"' "'" "'";
+}
+q::before {
+  content: open-quote;
+}
+q::after {
+  content: close-quote;
+}
+ +

{{EmbedLiveSample('Basic_quote_marks', "100%", 60)}}

+ +

自動引用符

+ +
<div lang="fr">
+  <q>Ceci est une citation française.</q>
+<div>
+<hr>
+<div lang="ru">
+  <q>Это русская цитата</q>
+<div>
+<hr>
+<div lang="ja">
+  <q>これは日本語の引用符です。</q>
+<div>
+<hr>
+<div lang="en">
+  <q>This is an English quote.</q>
+<div>
+
+ +
/*q {
+  quotes: auto;
+}*/
+
+ +

{{EmbedLiveSample('Auto_quotes', "100%", 200)}}

+ +

メモ

+ + + +

仕様書

+ + + + + + + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName("CSS3 Content", "#quotes", "quotes")}}{{Spec2("CSS3 Content")}}
{{ SpecName('CSS2.1', 'generate.html#quotes', 'quotes') }}{{ Spec2('CSS2.1') }}初回定義
+ +

{{cssinfo}}

+ +

ブラウザーの互換性

+ +

{{Compat("css.properties.quotes")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf