From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/css/quotes/index.html | 141 +++++++++++++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 files/ja/web/css/quotes/index.html (limited to 'files/ja/web/css/quotes') diff --git a/files/ja/web/css/quotes/index.html b/files/ja/web/css/quotes/index.html new file mode 100644 index 0000000000..81545bf8d1 --- /dev/null +++ b/files/ja/web/css/quotes/index.html @@ -0,0 +1,141 @@ +--- +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