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/@media/overflow-inline/index.html | 75 ++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 files/ja/web/css/@media/overflow-inline/index.html (limited to 'files/ja/web/css/@media/overflow-inline/index.html') diff --git a/files/ja/web/css/@media/overflow-inline/index.html b/files/ja/web/css/@media/overflow-inline/index.html new file mode 100644 index 0000000000..2b0a2d67d4 --- /dev/null +++ b/files/ja/web/css/@media/overflow-inline/index.html @@ -0,0 +1,75 @@ +--- +title: overflow-inline +slug: Web/CSS/@media/overflow-inline +tags: + - '@media' + - CSS + - Media Queries + - Reference + - メディアクエリ + - メディア特性 + - リファレンス +translation_of: Web/CSS/@media/overflow-inline +--- +
{{cssref}}
+ +

overflow-inlineCSSメディア特性で、初期包含ブロックをインライン軸方向にあふれたコンテンツを端末がどのように扱うかを調べるために使用します。

+ +

構文

+ +

overflow-inline 特性は以下の一覧のうち一つのキーワード値で指定します。

+ +
+
none
+
インライン軸方向にあふれたコンテンツは表示されません。
+
scroll
+
インライン軸方向にあふれたコンテンツは、スクロールすることで見ることができます。
+
+ +

+ +

HTML

+ +
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam ac turpis eleifend, fringilla velit ac, aliquam tellus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nunc velit erat, tempus id rutrum sed, dapibus ut urna. Integer vehicula nibh a justo imperdiet rutrum. Nam faucibus pretium orci imperdiet sollicitudin. Nunc id facilisis dui. Proin elementum et massa et feugiat. Integer rutrum ullamcorper eleifend. Proin sit amet tincidunt risus. Sed nec augue congue eros accumsan tincidunt sed eget ex.</p>
+
+ +

CSS

+ +
p {
+  white-space: nowrap;
+}
+
+@media (overflow-inline: scroll) {
+  p {
+    color: red;
+  }
+}
+ +

結果

+ +

{{EmbedLiveSample("Example")}}

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('CSS4 Media Queries', '#mf-overflow-inline', 'overflow-inline')}}{{Spec2('CSS4 Media Queries')}}初回定義。
+ +

ブラウザーの互換性

+ + + +
{{Compat("css.at-rules.media.overflow-inline")}}
-- cgit v1.2.3-54-g00ecf