Baseline Widely available *
<overflow>
åæå¤åã¯ãoverflow-block
ãoverflow-inline
ãoverflow-x
ãoverflow-y
ã®å奿å®ããããã£ã¨ overflow
䏿¬æå®ããããã£ã®ãã¼ã¯ã¼ãå¤ã表ãã¾ãããããã®ããããã£ã¯ããããã¯ã³ã³ããã¼ããã¬ãã¯ã¹ã³ã³ããã¼ãã°ãªããã³ã³ããã¼ã«é©ç¨ããã¾ãã
<overflow> = visible | hidden | clip | scroll | autoå¤
åæåã®å¤ <overflow>
ã¯ãä¸è¨ã®ä¸è¦§ã®ããããã®å¤ã使ç¨ãã¦æå®ãã¾ãã
visible
ã¯ã¿åºããã³ã³ãã³ãã¯åãåããããè¦ç´ ã®ããã£ã³ã°ããã¯ã¹å¤ã«è¡¨ç¤ºããããã¨ãããã¾ããè¦ç´ ããã¯ã¹ã¯ã¹ã¯ãã¼ã«ã³ã³ããã¼ã«ã¯ãªãã¾ãããããã <overflow>
åæåãæã¤ãã¹ã¦ã®ããããã£ã®æ¢å®å¤ã§ãã
hidden
ã¯ã¿åºããã³ã³ãã³ãã¯è¦ç´ ã®ããã£ã³ã°ããã¯ã¹ã§åãåããã¾ããã¹ã¯ãã¼ã«ãã¼ã¯ãªããåãåãããã³ã³ãã³ãã¯è¡¨ç¤ºããã¾ããï¼ã¤ã¾ããåãåãããã³ã³ãã³ãã¯é表示ã«ãªãã¾ãï¼ããã³ã³ãã³ãã¯åå¨ãã¾ããã¦ã¼ã¶ã¼ã¨ã¼ã¸ã§ã³ãã¯ã¹ã¯ãã¼ã«ãã¼ã追å ãã¾ããããã¿ããç»é¢ããã©ãã°ãããããã¦ã¹ã®ã¹ã¯ãã¼ã«ãã¤ã¼ã«ã使ç¨ãããããæä½ã«ãã£ã¦ãã¦ã¼ã¶ã¼ãåãåãããé åã®å¤ã«ããã³ã³ãã³ãã表示ãããã¨ãã§ãã¾ãããè¦ç´ ã¯ããã°ã©ã ã«ãã£ã¦ï¼ä¾ãã°ã scrollLeft
ããããã£ã scrollTo()
ã¡ã½ããã®å¤ãè¨å®ãããã¨ã§ï¼ã³ã³ãã³ããã¹ã¯ãã¼ã«ãããã¨ãã§ãã¾ããã³ã³ãã³ãã¯ããã¼ãã¼ãæä½ã§ãã¹ã¯ãã¼ã«ãããã¨ãã§ãã¾ããç¢å°ã§ã³ã³ãã³ããã¹ã¯ãã¼ã«ãããã¨ãã§ããé ãããã³ã³ãã³ãå
ã®ãã©ã¼ã«ã¹å¯è½ãªè¦ç´ ã¸ã¿ãæä½ãããã¨ããã©ã¼ã«ã¹ãããè¦ç´ ããã¥ã¼ã«ã¹ã¯ãã¼ã«ããããã¨ãã§ãã¾ãããã®å¤ãè¨å®ããã¦ããè¦ç´ ããã¯ã¹ã¯ãã¹ã¯ãã¼ã«ã³ã³ããã¼ã«ãªãã¾ãã
clip
ã¯ã¿åºããã³ã³ãã³ãã¯ã overflow-clip-margin
ããããã£ã使ç¨ãã¦å®ç¾©ããè¦ç´ ã® ãªã¼ãã¼ããã¼ã¯ãªãã辺 ã§ã¯ãªããããã¾ãããã®çµæãã³ã³ãã³ãã¯è¦ç´ ã®ããã£ã³ã°ããã¯ã¹ãã overflow-clip-margin
ã® <length>
å¤ãã¾ãã¯è¨å®ããã¦ããªãå ´å㯠0px
ã ãã¯ã¿åºãã¾ããã¯ãªããé åå¤ã«ã¯ã¿åºããã³ã³ãã³ãã¯è¡¨ç¤ºããããã¦ã¼ã¶ã¼ã¨ã¼ã¸ã§ã³ãã¯ã¹ã¯ãã¼ã«ãã¼ã表示ããããããã°ã©ã ã«ããã¹ã¯ãã¼ã«ã«ã対å¿ãã¾ãããæ°ããæ´å½¢ã³ã³ããã¹ãã¯ä½æããã¾ããã
scroll
ã¯ã¿åºããã³ã³ãã³ãã¯è¦ç´ ã®ããã£ã³ã°ããã¯ã¹ã§ã¯ãªãããããã¯ã¿åºããã³ã³ãã³ãã¯ã¹ã¯ãã¼ã«ãã¼ã使ç¨ãã¦ã¹ã¯ãã¼ã«ãã¦è¡¨ç¤ºãããã¨ãã§ãã¾ããã¦ã¼ã¶ã¼ã¨ã¼ã¸ã§ã³ãã¯ãã³ã³ãã³ããã¯ã¿åºãããåãåãããããããã©ããã«ãããããã 1 ã¤ã®å¤ã ããè¨å®ããã¨æ°´å¹³æ¹åã¨åç´æ¹åã®ä¸¡æ¹ã«ã¹ã¯ãã¼ã«ãã¼ã表示ãã¾ãããããã£ã¦ããã®ãã¼ã¯ã¼ãå¤ã使ç¨ãããã¨ã§ãã³ã³ãã³ãã®å¤æ´ã«ä¼´ã£ã¦ã¹ã¯ãã¼ã«ãã¼ãç¾ãããæ¶ãããããã®ãé²ããã¨ãã§ãã¾ããããªã³ã¿ã¼ã§ã¯ãã¯ã¿åºããã³ã³ãã³ããåºåããããã¨ãããã¾ãããã®å¤ãè¨å®ããã¦ããè¦ç´ ããã¯ã¹ã¯ãã¹ã¯ãã¼ã«ã³ã³ããã¼ã«ãªãã¾ãã
auto
ã¯ã¿åºããã³ã³ãã³ãã¯è¦ç´ ã®ããã£ã³ã°ããã¯ã¹ã§åãåãããã¯ã¿åºããã³ã³ãã³ãã¯ã¹ã¯ãã¼ã«ãã¦è¡¨ç¤ºãããã¨ãã§ãã¾ãã scroll
ã¨ã¯ç°ãªããã¦ã¼ã¶ã¼ã¨ã¼ã¸ã§ã³ãã¯ã³ã³ãã³ããã¯ã¿åºããå ´åã®ã¿ã¹ã¯ãã¼ã«ãã¼ã表示ããæ¢å®ã§ã¯ã¹ã¯ãã¼ã«ãã¼ãé表示ã«ãã¾ããã³ã³ãã³ããè¦ç´ ã®ããã£ã³ã°ããã¯ã¹å
ã«åã¾ãå ´åã visible
ã¨åãããã«è¦ãã¾ãããæ°ããæ´å½¢ã³ã³ããã¹ãã確ç«ããã¾ãããã®å¤ãè¨å®ãããè¦ç´ ããã¯ã¹ã¯ã¹ã¯ãã¼ã«ã³ã³ããã¼ã«ãªãã¾ãã
ã¡ã¢: ãã¼ã¯ã¼ãå¤ overlay
㯠auto
ã®å¤ãå¤ã®å¥åã§ãã overlay
ãæå®ããã¨ãã¹ã¯ãã¼ã«ãã¼ã¯ç©ºéãå ããã®ã§ã¯ãªããã³ã³ãã³ãã®ä¸ã«æç»ããã¾ãã
ãã®ä¾ã§ã¯ã overflow
ããããã£ã® <overflow>
åæå¤ããã¹ã¦ãã¢ãã¦ãã¾ãã
ãã®ä¾ã® HTML 㯠<pre>
è¦ç´ å
ã«ããã¤ãã®æè©ãæ ¼ç´ãã¦ãã¾ãã HTML ã¯ã¾ãããªã¼ãã¼ããã¼ã¨ã¹ã¯ãã¼ã«ã®åä½ã«å¯¾ãããã¼ãã¼ããã©ã¼ã«ã¹ã®å¹æããã¹ãã§ããããã«ãªã³ã¯ããã¹ããæ ¼ç´ãã¦ãã¾ããããããã® <overflow>
åæå¤ã®å¹æã表示ãããããã«ãåã HTML ã³ã¼ããè¤æ°åç¹°ãè¿ããã¦ãã¾ãã
<pre>
Oh, Rubber Duckie, you're the one
You make bath time lots of fun
Rubber Duckie, I'm awfully fond of you
Rubber Duckie, joy of joys
When I squeeze you, you make noise
Rubber Duckie, you're my very best friend, it's true
Oh, every day when I make my way to the tubby
I find a little fella who's cute and yellow and chubby
Rub-a-dub-dubby
<a href="#">Rubber Duckie</a>, you're so fine
And I'm lucky that you're mine
Rubber Duckie, I'm awfully fond of you
</pre>
<pre>
Oh, Rubber Duckie, you're the one
You make bath time lots of fun
Rubber Duckie, I'm awfully fond of you
Rubber Duckie, joy of joys
When I squeeze you, you make noise
Rubber Duckie, you're my very best friend, it's true
Oh, every day when I make my way to the tubby
I find a little fella who's cute and yellow and chubby
Rub-a-dub-dubby
<a href="#">Rubber Duckie</a>, you're so fine
And I'm lucky that you're mine
Rubber Duckie, I'm awfully fond of you
</pre>
<pre>
Oh, Rubber Duckie, you're the one
You make bath time lots of fun
Rubber Duckie, I'm awfully fond of you
Rubber Duckie, joy of joys
When I squeeze you, you make noise
Rubber Duckie, you're my very best friend, it's true
Oh, every day when I make my way to the tubby
I find a little fella who's cute and yellow and chubby
Rub-a-dub-dubby
<a href="#">Rubber Duckie</a>, you're so fine
And I'm lucky that you're mine
Rubber Duckie, I'm awfully fond of you
</pre>
<pre>
Oh, Rubber Duckie, you're the one
You make bath time lots of fun
Rubber Duckie, I'm awfully fond of you
Rubber Duckie, joy of joys
When I squeeze you, you make noise
Rubber Duckie, you're my very best friend, it's true
Oh, every day when I make my way to the tubby
I find a little fella who's cute and yellow and chubby
Rub-a-dub-dubby
<a href="#">Rubber Duckie</a>, you're so fine
And I'm lucky that you're mine
Rubber Duckie, I'm awfully fond of you
</pre>
<pre>
Oh, Rubber Duckie, you're the one
You make bath time lots of fun
Rubber Duckie, I'm awfully fond of you
Rubber Duckie, joy of joys
When I squeeze you, you make noise
Rubber Duckie, you're my very best friend, it's true
Oh, every day when I make my way to the tubby
I find a little fella who's cute and yellow and chubby
Rub-a-dub-dubby
<a href="#">Rubber Duckie</a>, you're so fine
And I'm lucky that you're mine
Rubber Duckie, I'm awfully fond of you
</pre>
<pre>
Oh, Rubber Duckie, you're the one
You make bath time lots of fun
Rubber Duckie, I'm awfully fond of you
Rubber Duckie, joy of joys
When I squeeze you, you make noise
Rubber Duckie, you're my very best friend, it's true
Oh, every day when I make my way to the tubby
I find a little fella who's cute and yellow and chubby
Rub-a-dub-dubby
<a href="#">Rubber Duckie</a>, you're so fine
And I'm lucky that you're mine
Rubber Duckie, I'm awfully fond of you
</pre>
CSS
ãã¢ã®ããã<pre>
è¦ç´ ã®ããã¯ã¹ã®ãµã¤ãºã¯ãã¤ã³ã©ã¤ã³ã¨ãããã¯ã®ä¸¡æ¹åã§ã³ã³ãã³ãããã®ã³ã³ããã¼ãã確å®ã«ã¯ã¿åºãããã«å®ç¾©ããã¦ãã¾ããç¹°ãè¿ããã <pre>
è¦ç´ ã«ã¯ããããç°ãªã <overflow>
å¤ãè¨å®ããã¦ãã¾ãã clip
å¤ã®ãã¢ã®ããã«ã overflow-clip-margin
ã追å ãã¦ãã¾ãã
pre {
border: 2px dashed red;
margin-bottom: 3em;
}
::before {
font-weight: bold;
color: white;
background: crimson;
display: inline-block;
width: 100%;
padding: 3px 5px;
box-sizing: border-box;
}
pre {
block-size: 100px;
inline-size: 295px;
}
pre:nth-of-type(1) {
overflow: hidden;
}
pre:nth-of-type(1)::before {
content: "hidden: ";
}
pre:nth-of-type(2) {
overflow: clip;
overflow-clip-margin: 1em;
}
pre:nth-of-type(2)::before {
content: "clip: ";
}
pre:nth-of-type(3) {
overflow: scroll;
}
pre:nth-of-type(3)::before {
content: "scroll: ";
}
pre:nth-of-type(4) {
overflow: auto;
}
pre:nth-of-type(4)::before {
content: "auto: ";
}
pre:nth-of-type(5) {
overflow: clip;
overflow: overlay;
overflow-clip-margin: 3em;
}
pre:nth-of-type(5)::before {
content: "overlay ï¼å¯¾å¿ãã¦ããªãå ´å㯠clipï¼: ";
}
pre:nth-of-type(6) {
overflow: visible;
}
pre:nth-of-type(6)::before {
content: "visible: ";
}
çµæ
ãã¼ãã¼ããã©ã¼ã«ã¹ããªã¼ãã¼ããã¼ãã¹ã¯ãã¼ã«ã®åä½ã«ä¸ãã广ãè¦ãã«ã¯ãä¾ãã°ãã®ä¾ã®ãªã³ã¯ããã¹ã¦ã¿ãã§è¡¨ç¤ºãã¦ã¿ã¦ãã ããã clip
ããã¯ã¹ã¯ã¹ã¯ãã¼ã«ã³ã³ããã¼ã使ããããªã³ã¯ã«ãã©ã¼ã«ã¹ãå½ãã£ã¦ããªã³ã¯ã表示ãããªããã¨ã«æ³¨æãã¦ãã ããã常ã«ãªã³ã¯ã表示ããã¦ãã visible
å¤ãã¹ã¯ãã¼ã«ã³ã³ããã¼ã«ã¯ãªãã¾ããã
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4