{"id":18165,"date":"2026-07-15T06:20:09","date_gmt":"2026-07-15T06:20:09","guid":{"rendered":"https:\/\/withcode.tech\/media\/?p=18165"},"modified":"2026-07-19T15:13:13","modified_gmt":"2026-07-19T15:13:13","slug":"css-overflow","status":"publish","type":"post","link":"https:\/\/withcode.tech\/media\/css-overflow\/","title":{"rendered":"\u30102026\u5e74\u7248\u3011CSS overflow\u5b8c\u5168\u30ac\u30a4\u30c9\uff5c\u306f\u307f\u51fa\u3057\u30fb\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u30fb\u7701\u7565\u8868\u793a\u306e\u5236\u5fa1"},"content":{"rendered":"<p class=\"wp-block-paragraph\">\u300c\u306a\u305c\u304b\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u304c\u51fa\u3066\u3057\u307e\u3046\u300d\u300c\u30c6\u30ad\u30b9\u30c8\u304c\u30dc\u30c3\u30af\u30b9\u304b\u3089\u306f\u307f\u51fa\u3057\u3066\u5d29\u308c\u308b\u300d\u300c\u30ab\u30fc\u30c9\u578b\u30ec\u30a4\u30a2\u30a6\u30c8\u3067\u6587\u5b57\u3092\u4e00\u5b9a\u306e\u9577\u3055\u3067\u7701\u7565\u3057\u305f\u3044\u300d\u2014\u2014CSS\u3092\u66f8\u3044\u3066\u3044\u308b\u3068\u3001\u3053\u3046\u3057\u305f<strong>\u306f\u307f\u51fa\u3057\u30fb\u30b9\u30af\u30ed\u30fc\u30eb<\/strong>\u307e\u308f\u308a\u306e\u60a9\u307f\u306f\u65e5\u5e38\u8336\u98ef\u4e8b\u3067\u3059\u3002\u3053\u308c\u3089\u3092\u307e\u3068\u3081\u3066\u5236\u5fa1\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u304c <strong>overflow<\/strong> \u3067\u3059\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">overflow\u306f\u4e00\u898b\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u304c\u3001<code>overflow-x<\/code> \u3068 <code>overflow-y<\/code> \u306e\u500b\u5225\u6307\u5b9a\u3001<code>text-overflow<\/code> \u3068\u306e\u7d44\u307f\u5408\u308f\u305b\u3001\u3055\u3089\u306b\u306f <code>position: sticky<\/code> \u304c\u7a81\u7136\u52b9\u304b\u306a\u304f\u306a\u308b\u539f\u56e0\u306b\u306a\u308b\u306a\u3069\u3001\u6df1\u307f\u306b\u306f\u307e\u308a\u3084\u3059\u3044\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3082\u3042\u308a\u307e\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u521d\u5fc3\u8005\u3067\u3082\u3059\u3050\u4f7f\u3048\u308b\u30b3\u30d4\u30da\u5b9f\u4f8b\u3092\u4e2d\u5fc3\u306b\u3001overflow\u95a2\u9023\u306e\u77e5\u8b58\u3092\u4f53\u7cfb\u7684\u306b\u307e\u3068\u3081\u307e\u3057\u305f\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u8aad\u307f\u7d42\u308f\u308b\u9803\u306b\u306f\u300c\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u304c\u51fa\u308b\u300d\u300c\u6587\u5b57\u304c\u306f\u307f\u51fa\u3059\u300d\u300c\u30b9\u30af\u30ed\u30fc\u30eb\u304c\u9023\u9396\u3057\u3066\u3057\u307e\u3046\u300d\u3068\u3044\u3063\u305f\u3088\u304f\u3042\u308b\u554f\u984c\u3092\u3001\u81ea\u5206\u3067\u539f\u56e0\u7279\u5b9a\u3057\u3066\u89e3\u6c7a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">overflow\u3068\u306f\u4f55\u304b\u2014\u2014\u57fa\u672c\u306e\u8003\u3048\u65b9<\/h2>\n\n\n<p class=\"wp-block-paragraph\">CSS\u306e <code>overflow<\/code> \u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u3001<strong>\u8981\u7d20\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u30dc\u30c3\u30af\u30b9\uff08\u9818\u57df\uff09\u306b\u53ce\u307e\u308a\u304d\u3089\u306a\u3044\u3068\u304d\u3001\u306f\u307f\u51fa\u305f\u90e8\u5206\u3092\u3069\u3046\u6271\u3046\u304b<\/strong>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u5e45200px\u306e\u30dc\u30c3\u30af\u30b9\u306b400px\u5206\u306e\u30c6\u30ad\u30b9\u30c8\u304c\u5165\u3063\u305f\u3068\u304d\u3001\u3069\u3046\u3059\u308b\u304b\u2014\u2014\u305d\u308c\u3092\u6c7a\u3081\u308b\u306e\u304coverflow\u3067\u3059\u3002<\/p>\n\n\n<h3 class=\"wp-block-heading\">overflow\u306e5\u3064\u306e\u5024<\/h3>\n\n\n<p class=\"wp-block-paragraph\">overflow\u306b\u306f\u4e3b\u306b5\u3064\u306e\u5024\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u306e\u6319\u52d5\u3092\u3057\u3063\u304b\u308a\u628a\u63e1\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n<ul class=\"wp-block-list\">\n<li><strong>visible<\/strong>\uff08\u521d\u671f\u5024\uff09: \u306f\u307f\u51fa\u3057\u3092\u305d\u306e\u307e\u307e\u8868\u793a\u3059\u308b\u3002\u30dc\u30c3\u30af\u30b9\u5916\u306b\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u63cf\u753b\u3055\u308c\u308b<\/li>\n<li><strong>hidden<\/strong>: \u306f\u307f\u51fa\u3057\u305f\u90e8\u5206\u3092\u5207\u308a\u53d6\u3063\u3066\u975e\u8868\u793a\u306b\u3059\u308b\u3002\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u306f\u51fa\u306a\u3044<\/li>\n<li><strong>scroll<\/strong>: \u306f\u307f\u51fa\u3057\u306e\u6709\u7121\u306b\u95a2\u308f\u3089\u305a\u3001\u5e38\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u3092\u8868\u793a\u3059\u308b<\/li>\n<li><strong>auto<\/strong>: \u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u306f\u307f\u51fa\u305f\u3068\u304d\u3060\u3051\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u3092\u81ea\u52d5\u7684\u306b\u8868\u793a\u3059\u308b<\/li>\n<li><strong>clip<\/strong>: hidden\u3068\u4f3c\u3066\u3044\u308b\u304c\u3001\u30b9\u30af\u30ed\u30fc\u30eb\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u64cd\u4f5c\uff08scrollTo\u7b49\uff09\u3082\u7121\u52b9\u306b\u3059\u308b\u3002\u3088\u308a\u53b3\u683c\u306a\u5207\u308a\u53d6\u308a<\/li>\n<\/ul>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* visible: \u521d\u671f\u5024\u3002\u306f\u307f\u51fa\u3057\u3066\u3082\u305d\u306e\u307e\u307e\u8868\u793a *\/\n.box-visible {\n  width: 200px;\n  height: 100px;\n  overflow: visible; \/* \u30c7\u30d5\u30a9\u30eb\u30c8\u306a\u306e\u3067\u7701\u7565\u53ef *\/\n}\n\n\/* hidden: \u306f\u307f\u51fa\u3057\u90e8\u5206\u3092\u5207\u308a\u53d6\u308a *\/\n.box-hidden {\n  width: 200px;\n  height: 100px;\n  overflow: hidden;\n}\n\n\/* scroll: \u5e38\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u3092\u8868\u793a *\/\n.box-scroll {\n  width: 200px;\n  height: 100px;\n  overflow: scroll;\n}\n\n\/* auto: \u306f\u307f\u51fa\u3057\u305f\u3068\u304d\u3060\u3051\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u3092\u8868\u793a *\/\n.box-auto {\n  width: 200px;\n  height: 100px;\n  overflow: auto;\n}\n\n\/* clip: \u306f\u307f\u51fa\u3057\u3092\u5207\u308a\u53d6\u308a\u3001\u30b9\u30af\u30ed\u30fc\u30eb\u64cd\u4f5c\u3082\u4e0d\u53ef *\/\n.box-clip {\n  width: 200px;\n  height: 100px;\n  overflow: clip;\n}<\/code><\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u52d9\u3067\u306f <code>hidden<\/code> \u3068 <code>auto<\/code> \u3092\u4f7f\u3046\u5834\u9762\u304c\u5727\u5012\u7684\u306b\u591a\u3044\u3067\u3059\u3002<code>scroll<\/code> \u306f\u300c\u30b3\u30f3\u30c6\u30f3\u30c4\u91cf\u306b\u95a2\u308f\u3089\u305a\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u306e\u9818\u57df\u3092\u78ba\u4fdd\u3057\u305f\u3044\u300d\u5834\u9762\u3067\u4f7f\u3044\u307e\u3059\u3002<code>clip<\/code> \u306f\u6bd4\u8f03\u7684\u65b0\u3057\u3044\u5024\uff08\u4e3b\u8981\u30d6\u30e9\u30a6\u30b6\u30672022\u5e74\u9803\u304b\u3089\u5bfe\u5fdc\uff09\u3067\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u30af\u30ea\u30c3\u30d7\u9818\u57df\u3092\u53b3\u5bc6\u306b\u5236\u5fa1\u3057\u305f\u3044\u3068\u304d\u306b\u6709\u7528\u3067\u3059\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">overflow-x \u3068 overflow-y\u2014\u2014\u6a2a\u30fb\u7e26\u3092\u500b\u5225\u306b\u6307\u5b9a\u3059\u308b<\/h2>\n\n\n<p class=\"wp-block-paragraph\"><code>overflow<\/code> \u306f\u6a2a\u65b9\u5411\u3068\u7e26\u65b9\u5411\u3092\u307e\u3068\u3081\u3066\u6307\u5b9a\u3059\u308b\u30b7\u30e7\u30fc\u30c8\u30cf\u30f3\u30c9\u3067\u3059\u304c\u3001<code>overflow-x<\/code>\uff08\u6a2a\u65b9\u5411\uff09\u3068 <code>overflow-y<\/code>\uff08\u7e26\u65b9\u5411\uff09\u3067\u500b\u5225\u306b\u5236\u5fa1\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u304c\u975e\u5e38\u306b\u4fbf\u5229\u306a\u5834\u9762\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u6a2a\u30b9\u30af\u30ed\u30fc\u30ebOK\u3001\u7e26\u306f\u306f\u307f\u51fa\u3057\u975e\u8868\u793a *\/\n.horizontal-scroll {\n  overflow-x: auto;\n  overflow-y: hidden;\n  white-space: nowrap; \/* \u6a2a\u4e00\u5217\u306b\u4e26\u3079\u308b\u305f\u3081\u306b\u5fc5\u8981 *\/\n}\n\n\/* \u7e26\u30b9\u30af\u30ed\u30fc\u30ebOK\u3001\u6a2a\u306f\u5207\u308a\u53d6\u308a *\/\n.vertical-scroll {\n  overflow-x: hidden;\n  overflow-y: auto;\n  max-height: 300px;\n}<\/code><\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>\u91cd\u8981\u306a\u4ed5\u69d8\u4e0a\u306e\u6ce8\u610f<\/strong>\u304c\u3042\u308a\u307e\u3059\u3002<code>overflow-x<\/code> \u3068 <code>overflow-y<\/code> \u306e\u4e00\u65b9\u3092 <code>visible<\/code> \u4ee5\u5916\u306b\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u3082\u3046\u4e00\u65b9\u304c\u81ea\u52d5\u7684\u306b <code>visible<\/code> \u304b\u3089 <code>auto<\/code> \u306b\u5909\u308f\u308a\u307e\u3059\u3002\u3064\u307e\u308a\u300c\u6a2a\u306fhidden\u3001\u7e26\u306fvisible\u300d\u3068\u3044\u3046\u7d44\u307f\u5408\u308f\u305b\u306f\u5b9f\u73fe\u3067\u304d\u307e\u305b\u3093\u3002\u4e00\u65b9\u3092\u5236\u5fa1\u3057\u305f\u6642\u70b9\u3067\u3001\u3082\u3046\u4e00\u65b9\u3082 <code>auto<\/code> \u6271\u3044\u306b\u306a\u308b\u3068\u899a\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n<h3 class=\"wp-block-heading\">\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u53ef\u80fd\u306a\u30ab\u30fc\u30c9\u30ea\u30b9\u30c8\u306e\u5b9f\u88c5\u4f8b<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-markup\" data-lang=\"HTML\"><code>&lt;div class=\"card-scroll-wrap\"&gt;\n  &lt;div class=\"card-list\"&gt;\n    &lt;div class=\"card\"&gt;\u30ab\u30fc\u30c91&lt;\/div&gt;\n    &lt;div class=\"card\"&gt;\u30ab\u30fc\u30c92&lt;\/div&gt;\n    &lt;div class=\"card\"&gt;\u30ab\u30fc\u30c93&lt;\/div&gt;\n    &lt;div class=\"card\"&gt;\u30ab\u30fc\u30c94&lt;\/div&gt;\n    &lt;div class=\"card\"&gt;\u30ab\u30fc\u30c95&lt;\/div&gt;\n  &lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre><\/div>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.card-scroll-wrap {\n  overflow-x: auto;\n  overflow-y: hidden;\n  -webkit-overflow-scrolling: touch; \/* iOS\u6163\u6027\u30b9\u30af\u30ed\u30fc\u30eb\uff08\u53c2\u8003\uff09 *\/\n}\n\n.card-list {\n  display: flex;\n  gap: 16px;\n  width: max-content; \/* \u5b50\u8981\u7d20\u306e\u5408\u8a08\u5e45\u306b\u5e83\u304c\u308b *\/\n  padding: 8px;\n}\n\n.card {\n  width: 200px;\n  flex-shrink: 0; \/* \u30ab\u30fc\u30c9\u304c\u7e2e\u307e\u306a\u3044\u3088\u3046\u306b\u3059\u308b *\/\n  background: #f0f0f0;\n  border-radius: 8px;\n  padding: 16px;\n}<\/code><\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30d1\u30bf\u30fc\u30f3\u306f\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u3067\u306e\u30ab\u30fc\u30c9\u6a2a\u30b9\u30af\u30ed\u30fc\u30ebUI\u3067\u3088\u304f\u4f7f\u308f\u308c\u307e\u3059\u3002<code>flex-shrink: 0<\/code> \u3067\u30ab\u30fc\u30c9\u304c\u7e2e\u307e\u306a\u3044\u3088\u3046\u306b\u3057\u3001<code>width: max-content<\/code> \u3067\u30b3\u30f3\u30c6\u30ca\u304c\u5b50\u8981\u7d20\u306e\u5408\u8a08\u5e45\u306b\u5e83\u304c\u308b\u306e\u304c\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">\u610f\u56f3\u3057\u306a\u3044\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u306e\u539f\u56e0\u3068\u6d88\u3057\u65b9<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u300c\u30da\u30fc\u30b8\u306b\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u304c\u51fa\u3066\u56f0\u308b\u300d\u3068\u3044\u3046\u306e\u306fWeb\u5236\u4f5c\u3067\u3088\u304f\u3042\u308b\u554f\u984c\u3067\u3059\u3002\u539f\u56e0\u306f\u3044\u304f\u3064\u304b\u306e\u30d1\u30bf\u30fc\u30f3\u306b\u7d5e\u3089\u308c\u307e\u3059\u3002\u539f\u56e0\u3092\u7279\u5b9a\u3057\u3066\u304b\u3089\u5bfe\u51e6\u3059\u308b\u306e\u304c\u6700\u77ed\u30eb\u30fc\u30c8\u3067\u3059\u3002<\/p>\n\n\n<h3 class=\"wp-block-heading\">\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u304c\u51fa\u308b\u4e3b\u306a\u539f\u56e0<\/h3>\n\n<ul class=\"wp-block-list\">\n<li>\u8981\u7d20\u306b <code>width: 100vw<\/code> \u3092\u6307\u5b9a\u3057\u3066\u3044\u308b\u304c\u3001\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u306e\u5e45\u5206\u306f\u307f\u51fa\u3057\u3066\u3044\u308b<\/li>\n<li>\u30de\u30a4\u30ca\u30b9\u30de\u30fc\u30b8\u30f3\uff08<code>margin-left: -20px<\/code> \u7b49\uff09\u3067\u610f\u56f3\u305b\u305a\u5e45\u304c\u8d85\u3048\u3066\u3044\u308b<\/li>\n<li><code>white-space: nowrap<\/code> \u306e\u30c6\u30ad\u30b9\u30c8\u3084\u6a2a\u306b\u9577\u3044\u30a4\u30f3\u30e9\u30a4\u30f3\u8981\u7d20\u304c\u3042\u308b<\/li>\n<li>\u7d76\u5bfe\u914d\u7f6e\uff08<code>position: absolute<\/code>\uff09\u3084\u56fa\u5b9a\u914d\u7f6e\u306e\u8981\u7d20\u304c\u53f3\u306b\u306f\u307f\u51fa\u3057\u3066\u3044\u308b<\/li>\n<li>\u753b\u50cf\u3084iframe\u306b <code>max-width: 100%<\/code> \u304c\u5f53\u305f\u3063\u3066\u3044\u306a\u3044<\/li>\n<\/ul>\n\n\n<h3 class=\"wp-block-heading\">\u539f\u56e0\u3092\u7279\u5b9a\u3059\u308b\u30c7\u30d0\u30c3\u30b0\u7528CSS<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u3059\u3079\u3066\u306e\u8981\u7d20\u306b\u67a0\u7dda\u3092\u4ed8\u3051\u3066\u3001\u306f\u307f\u51fa\u3057\u8981\u7d20\u3092\u76ee\u8996\u78ba\u8a8d *\/\n* {\n  outline: 1px solid red;\n}\n\n\/* JavaScript\u3067\u306e\u30c7\u30d0\u30c3\u30b0\u65b9\u6cd5\uff08\u30d6\u30e9\u30a6\u30b6\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u8cbc\u308b\uff09 *\/\n\/* document.querySelectorAll('*').forEach(el => {\n  if (el.getBoundingClientRect().right > document.documentElement.clientWidth) {\n    console.log(el);\n  }\n}); *\/<\/code><\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\">\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u3092\u6d88\u3059\u57fa\u672c\u7684\u306a\u5bfe\u51e6\u6cd5<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u65b9\u6cd51: body\u306b overflow-x: hidden \u3092\u6307\u5b9a\uff08\u7c21\u5358\u3060\u304c\u526f\u4f5c\u7528\u6ce8\u610f\uff09 *\/\nbody {\n  overflow-x: hidden;\n}\n\n\/* \u65b9\u6cd52: \u306f\u307f\u51fa\u3057\u3066\u3044\u308b\u8981\u7d20\u306b max-width \u3092\u6307\u5b9a *\/\nimg,\nvideo,\niframe {\n  max-width: 100%;\n  height: auto;\n}\n\n\/* \u65b9\u6cd53: 100vw\u306e\u4ee3\u308f\u308a\u306b100%\u3092\u4f7f\u3046 *\/\n.full-width {\n  \/* width: 100vw; \u2190 \u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u5206\u306f\u307f\u51fa\u3059\u3053\u3068\u304c\u3042\u308b *\/\n  width: 100%; \/* \u3053\u3061\u3089\u304c\u5b89\u5168 *\/\n}\n\n\/* \u65b9\u6cd54: \u30cd\u30ac\u30c6\u30a3\u30d6\u30de\u30fc\u30b8\u30f3\u306e\u30ea\u30bb\u30c3\u30c8 *\/\n.section {\n  margin-left: 0;\n  margin-right: 0;\n}<\/code><\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\"><code>body { overflow-x: hidden }<\/code> \u306f\u624b\u8efd\u3067\u3059\u304c\u3001<strong>position: sticky \u304c\u52b9\u304b\u306a\u304f\u306a\u308b\u526f\u4f5c\u7528<\/strong>\u304c\u3042\u308a\u307e\u3059\uff08\u5f8c\u8ff0\uff09\u3002\u6839\u672c\u7684\u306a\u539f\u56e0\u3092\u7279\u5b9a\u3057\u3066\u5bfe\u51e6\u3059\u308b\u307b\u3046\u304c\u9577\u671f\u7684\u306b\u5b89\u5168\u3067\u3059\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">1\u884c\u30c6\u30ad\u30b9\u30c8\u7701\u7565\uff08text-overflow: ellipsis\uff09<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u30ab\u30fc\u30c9\u3084\u30ea\u30b9\u30c8\u3067\u9577\u3044\u30bf\u30a4\u30c8\u30eb\u3092\u300c&#8230;\u300d\u3067\u7701\u7565\u8868\u793a\u3059\u308b\u306e\u306f\u5b9a\u756a\u306eUI\u3067\u3059\u3002<strong>1\u884c\u7701\u7565<\/strong>\u306b\u306f3\u3064\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5fc5\u305a\u30bb\u30c3\u30c8\u3067\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n<h3 class=\"wp-block-heading\">1\u884c\u7701\u7565\u306e\u57fa\u672c\u30bb\u30c3\u30c8<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.ellipsis {\n  \/* \u3053\u306e3\u3064\u306f\u30bb\u30c3\u30c8\u3067\u5fc5\u9808 *\/\n  white-space: nowrap;        \/* \u30c6\u30ad\u30b9\u30c8\u3092\u6298\u308a\u8fd4\u3055\u306a\u3044 *\/\n  overflow: hidden;           \/* \u306f\u307f\u51fa\u3057\u3092\u975e\u8868\u793a *\/\n  text-overflow: ellipsis;    \/* \u306f\u307f\u51fa\u3057\u7b87\u6240\u3092\u300c...\u300d\u3067\u8868\u793a *\/\n\n  \/* \u5e45\u306e\u6307\u5b9a\u3082\u5fc5\u8981\uff08width\u304bmax-width\u304c\u306a\u3044\u3068\u7701\u7565\u3055\u308c\u306a\u3044\uff09 *\/\n  max-width: 200px;\n}<\/code><\/pre><\/div>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-markup\" data-lang=\"HTML\"><code>&lt;p class=\"ellipsis\"&gt;\u3053\u308c\u306f\u975e\u5e38\u306b\u9577\u3044\u30bf\u30a4\u30c8\u30eb\u30c6\u30ad\u30b9\u30c8\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002\u7701\u7565\u3055\u308c\u3066\u8868\u793a\u3055\u308c\u307e\u3059\u3002&lt;\/p&gt;<\/code><\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>\u3088\u304f\u3042\u308b\u30df\u30b9<\/strong>\uff1a<code>text-overflow: ellipsis<\/code> \u3060\u3051\u6307\u5b9a\u3057\u3066\u3082\u6a5f\u80fd\u3057\u307e\u305b\u3093\u3002<code>white-space: nowrap<\/code> \u3068 <code>overflow: hidden<\/code> \u304c\u63c3\u3063\u3066\u521d\u3081\u3066\u7701\u7565\u304c\u767a\u52d5\u3057\u307e\u3059\u3002\u307e\u305f\u3001<strong>\u5e45\u306e\u5236\u7d04\u304c\u306a\u3044\u8981\u7d20\u3067\u306f\u7701\u7565\u3055\u308c\u306a\u3044<\/strong>\u70b9\u3082\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n<h3 class=\"wp-block-heading\">Flexbox\u30ec\u30a4\u30a2\u30a6\u30c8\u5185\u3067\u306e\u7701\u7565<\/h3>\n\n\n<p class=\"wp-block-paragraph\">Flexbox\u306e\u5b50\u8981\u7d20\u3067ellipsis\u3092\u4f7f\u3046\u3068\u7701\u7565\u304c\u52b9\u304b\u306a\u3044\u30b1\u30fc\u30b9\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u5834\u5408\u306f <code>min-width: 0<\/code> \u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.flex-container {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n}\n\n.flex-text {\n  min-width: 0; \/* \u3053\u308c\u304c\u306a\u3044\u3068Flexbox\u5185\u3067ellipsis\u304c\u52b9\u304b\u306a\u3044 *\/\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}<\/code><\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Flex\u30a2\u30a4\u30c6\u30e0\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067 <code>min-width: auto<\/code> \u306b\u306a\u3063\u3066\u304a\u308a\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u5e45\u3088\u308a\u5c0f\u3055\u304f\u306a\u308b\u3053\u3068\u3092\u62d2\u5426\u3057\u307e\u3059\u3002<code>min-width: 0<\/code> \u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001ellipsis\u304c\u6b63\u3057\u304f\u6a5f\u80fd\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">\u8907\u6570\u884c\u30c6\u30ad\u30b9\u30c8\u7701\u7565\uff08-webkit-line-clamp\uff09<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u300c2\u884c\u3067\u7701\u7565\u3057\u30663\u884c\u76ee\u3092&#8230;\u306b\u3057\u305f\u3044\u300d\u3068\u3044\u3046\u8981\u4ef6\u306b\u306f <code>-webkit-line-clamp<\/code> \u3092\u4f7f\u3044\u307e\u3059\u3002\u304b\u3064\u3066\u306fWebkit\u5c02\u7528\u3067\u3057\u305f\u304c\u3001\u73fe\u5728\uff082026\u5e74\uff09\u306f\u4e3b\u8981\u30d6\u30e9\u30a6\u30b6\u3059\u3079\u3066\u3067\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n<h3 class=\"wp-block-heading\">-webkit-line-clamp\u306e\u57fa\u672c\u5f62<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.line-clamp {\n  display: -webkit-box;\n  -webkit-box-orient: vertical;\n  -webkit-line-clamp: 3;  \/* \u4f55\u884c\u76ee\u3067\u7701\u7565\u3059\u308b\u304b *\/\n  overflow: hidden;\n}\n\n\/* 2\u884c\u3067\u7701\u7565\u3057\u305f\u3044\u5834\u5408 *\/\n.line-clamp-2 {\n  display: -webkit-box;\n  -webkit-box-orient: vertical;\n  -webkit-line-clamp: 2;\n  overflow: hidden;\n}<\/code><\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u66f8\u304d\u65b9\u30673\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u30bb\u30c3\u30c8\u3067\u3059\u3002<code>display: -webkit-box<\/code> \u3068 <code>-webkit-box-orient: vertical<\/code> \u306f\u300c\u53e4\u3044\u66f8\u304d\u65b9\u300d\u3067\u3059\u304c\u3001<code>-webkit-line-clamp<\/code> \u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u5834\u5408\u306f\u73fe\u5728\u3082\u3053\u306e\u30bb\u30c3\u30c8\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n<h3 class=\"wp-block-heading\">line-clamp\u3068\u56fa\u5b9a\u9ad8\u3055\u306e\u7d44\u307f\u5408\u308f\u305b\u6ce8\u610f\u70b9<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u60aa\u3044\u4f8b: height\u3092\u56fa\u5b9a\u3059\u308b\u3068line-clamp\u304c\u6a5f\u80fd\u3057\u306a\u3044\u3053\u3068\u304c\u3042\u308b *\/\n.bad-example {\n  display: -webkit-box;\n  -webkit-box-orient: vertical;\n  -webkit-line-clamp: 2;\n  overflow: hidden;\n  height: 48px; \/* \u2190 \u56fa\u5b9aheight\u306fNG\u3002line-height\u3068\u306e\u6574\u5408\u6027\u304c\u5fc5\u8981 *\/\n}\n\n\/* \u826f\u3044\u4f8b: height\u3067\u306f\u306a\u304fmax-height\u304b\u305d\u306e\u307e\u307e *\/\n.good-example {\n  display: -webkit-box;\n  -webkit-box-orient: vertical;\n  -webkit-line-clamp: 2;\n  overflow: hidden;\n  \/* height\u306f\u6307\u5b9a\u3057\u306a\u3044\u3002line-clamp\u304c\u81ea\u52d5\u3067\u9ad8\u3055\u3092\u8abf\u6574\u3059\u308b *\/\n}<\/code><\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u306e\u30c7\u30b6\u30a4\u30f3\u3092CSS\u3067\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u306e\u30c7\u30b6\u30a4\u30f3\u306fCSS\u3067\u5909\u66f4\u3067\u304d\u307e\u3059\u3002WebKit\u7cfb\u30d6\u30e9\u30a6\u30b6\uff08Chrome\u30fbEdge\u30fbSafari\uff09\u5411\u3051\u306b\u306f <code>::webkit-scrollbar<\/code> \u7591\u4f3c\u8981\u7d20\u3001Firefox\u5411\u3051\u306b\u306f <code>scrollbar-width<\/code> \u3068 <code>scrollbar-color<\/code> \u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n<h3 class=\"wp-block-heading\">\u7d30\u304f\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* WebKit\u7cfb\uff08Chrome\u30fbEdge\u30fbSafari\uff09\u5411\u3051 *\/\n.custom-scroll::-webkit-scrollbar {\n  width: 6px;   \/* \u7e26\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u306e\u5e45 *\/\n  height: 6px;  \/* \u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u306e\u9ad8\u3055 *\/\n}\n\n.custom-scroll::-webkit-scrollbar-track {\n  background: #f1f1f1;      \/* \u30d0\u30fc\u306e\u80cc\u666f\uff08\u30ec\u30fc\u30eb\u90e8\u5206\uff09 *\/\n  border-radius: 3px;\n}\n\n.custom-scroll::-webkit-scrollbar-thumb {\n  background: #888;          \/* \u30d0\u30fc\u672c\u4f53\u306e\u8272 *\/\n  border-radius: 3px;\n}\n\n.custom-scroll::-webkit-scrollbar-thumb:hover {\n  background: #555;          \/* \u30db\u30d0\u30fc\u6642\u306e\u8272 *\/\n}\n\n\/* Firefox\u5411\u3051\uff08scrollbar-width\u3068scrollbar-color\uff09 *\/\n.custom-scroll {\n  scrollbar-width: thin;                  \/* auto \/ thin \/ none *\/\n  scrollbar-color: #888 #f1f1f1;          \/* thumb track \u306e\u9806 *\/\n  overflow-y: auto;\n  max-height: 300px;\n}<\/code><\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\">\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u3092\u5b8c\u5168\u306b\u975e\u8868\u793a\u306b\u3059\u308b<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.no-scrollbar {\n  \/* \u30b9\u30af\u30ed\u30fc\u30eb\u81ea\u4f53\u306f\u751f\u304b\u3057\u3064\u3064\u3001\u30d0\u30fc\u3092\u975e\u8868\u793a *\/\n  overflow-y: auto;\n  scrollbar-width: none;         \/* Firefox *\/\n  -ms-overflow-style: none;      \/* IE \/ Edge Legacy *\/\n}\n\n.no-scrollbar::-webkit-scrollbar {\n  display: none;                 \/* Chrome \/ Safari *\/\n}<\/code><\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u3092\u975e\u8868\u793a\u306b\u3057\u3066\u3082\u30b9\u30af\u30ed\u30fc\u30eb\u81ea\u4f53\u306f\u53ef\u80fd\u3067\u3059\u3002\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u306e\u3088\u3046\u306b\u898b\u305b\u305f\u3044UI\u3084\u3001\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u3059\u308b\u30ab\u30fc\u30c9\u30ea\u30b9\u30c8\u3067\u30d0\u30fc\u3092\u96a0\u3057\u305f\u3044\u5834\u5408\u306b\u4f7f\u3048\u307e\u3059\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">overflow: hidden \u306e\u4f7f\u3044\u3069\u3053\u308d<\/h2>\n\n\n<p class=\"wp-block-paragraph\"><code>overflow: hidden<\/code> \u306f\u5358\u7d14\u306b\u300c\u306f\u307f\u51fa\u3057\u3092\u5207\u308b\u300d\u3060\u3051\u3067\u306a\u304f\u3001\u3044\u304f\u3064\u304b\u306e\u91cd\u8981\u306a\u526f\u4f5c\u7528\u30fb\u7528\u9014\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n<h3 class=\"wp-block-heading\">\u753b\u50cf\u306e\u89d2\u4e38\u30af\u30ea\u30c3\u30d4\u30f3\u30b0<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.image-wrap {\n  border-radius: 12px;\n  overflow: hidden;  \/* border-radius\u306b\u5408\u308f\u305b\u3066\u753b\u50cf\u3092\u30af\u30ea\u30c3\u30d7 *\/\n  width: 200px;\n  height: 200px;\n}\n\n.image-wrap img {\n  width: 100%;\n  height: 100%;\n  object-fit: cover;\n}<\/code><\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\"><code>border-radius<\/code> \u3060\u3051\u6307\u5b9a\u3057\u3066\u3082\u3001\u5185\u5074\u306e\u753b\u50cf\u304c\u306f\u307f\u51fa\u3059\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u89aa\u8981\u7d20\u306b <code>overflow: hidden<\/code> \u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u89d2\u4e38\u306e\u5f62\u901a\u308a\u306b\u753b\u50cf\u304c\u30af\u30ea\u30c3\u30d7\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n<h3 class=\"wp-block-heading\">float\u3092\u4f7f\u3063\u305f\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u9ad8\u3055\u5d29\u308c\u89e3\u6d88\uff08clearfix\u4ee3\u66ff\uff09<\/h3>\n\n\n<p class=\"wp-block-paragraph\">\u73fe\u5728\u306fFlexbox\u3084Grid\u304c\u4e3b\u6d41\u3067\u3059\u304c\u3001\u65e7\u6765\u306e\u30b3\u30fc\u30c9\u3067\u306ffloat\u304c\u4f7f\u308f\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002float\u3057\u305f\u5b50\u8981\u7d20\u304c\u89aa\u8981\u7d20\u306e\u9ad8\u3055\u306b\u542b\u307e\u308c\u306a\u3044\u554f\u984c\u3092 <code>overflow: hidden<\/code> \u3067\u89e3\u6d88\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* float\u3057\u305f\u5b50\u304c\u89aa\u306e\u9ad8\u3055\u306b\u542b\u307e\u308c\u306a\u3044\u554f\u984c *\/\n.parent {\n  overflow: hidden; \/* BFC\uff08\u30d6\u30ed\u30c3\u30af\u6574\u5f62\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\uff09\u3092\u751f\u6210\u3057\u3066\u9ad8\u3055\u3092\u78ba\u4fdd *\/\n  background: #eee;\n}\n\n.child-float {\n  float: left;\n  width: 50%;\n}<\/code><\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u52d5\u4f5c\u306e\u6b63\u4f53\u306f <strong>BFC\uff08Block Formatting Context\uff09\u306e\u751f\u6210<\/strong>\u3067\u3059\u3002<code>overflow<\/code> \u304c <code>visible<\/code> \u4ee5\u5916\u306e\u5024\u306b\u306a\u308b\u3068\u3001\u305d\u306e\u8981\u7d20\u306fBFC\u3092\u5f62\u6210\u3057\u3001float\u8981\u7d20\u3092\u5185\u5305\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<code>display: flow-root<\/code> \u3067\u3082\u540c\u69d8\u306e\u52b9\u679c\u304c\u5f97\u3089\u308c\u3001\u3088\u308a\u660e\u793a\u7684\u3067\u308f\u304b\u308a\u3084\u3059\u3044\u3067\u3059\u3002<\/p>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* display: flow-root \u306f overflow: hidden \u3088\u308a\u3082\u610f\u56f3\u304c\u660e\u78ba *\/\n.parent-modern {\n  display: flow-root; \/* float\u3092\u5185\u5305\u3059\u308b\u305f\u3081\u306eBFC\u751f\u6210\uff08\u526f\u4f5c\u7528\u306a\u3057\uff09 *\/\n}\n\n.child-float {\n  float: left;\n  width: 50%;\n}<\/code><\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\">\u306f\u307f\u51fa\u3059\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u8981\u7d20\u306e\u30af\u30ea\u30c3\u30d4\u30f3\u30b0<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.animation-wrap {\n  overflow: hidden;    \/* \u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u4e2d\u306e\u8981\u7d20\u304c\u306f\u307f\u51fa\u3055\u306a\u3044\u3088\u3046\u306b\u30af\u30ea\u30c3\u30d7 *\/\n  position: relative;\n}\n\n.slide-in {\n  transform: translateX(-100%);\n  animation: slideIn 0.4s ease forwards;\n}\n\n@keyframes slideIn {\n  to {\n    transform: translateX(0);\n  }\n}<\/code><\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">overscroll-behavior \u3067\u30b9\u30af\u30ed\u30fc\u30eb\u306e\u9023\u9396\u3092\u6b62\u3081\u308b<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u30e2\u30fc\u30c0\u30eb\u3084\u30c9\u30ed\u30ef\u30fc\u306e\u4e2d\u3067\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u7d42\u308f\u3063\u305f\u3068\u304d\u3001<strong>\u80cc\u666f\u30da\u30fc\u30b8\u307e\u3067\u4e00\u7dd2\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u3057\u307e\u3046<\/strong>\u554f\u984c\u3092\u7d4c\u9a13\u3057\u305f\u3053\u3068\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002\u3053\u308c\u3092\u300c\u30b9\u30af\u30ed\u30fc\u30eb\u30c1\u30a7\u30fc\u30f3\uff08scroll chaining\uff09\u300d\u3068\u3044\u3044\u307e\u3059\u3002<code>overscroll-behavior<\/code> \u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u89e3\u6d88\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n<h3 class=\"wp-block-heading\">overscroll-behavior\u306e\u5024<\/h3>\n\n<ul class=\"wp-block-list\">\n<li><strong>auto<\/strong>\uff08\u521d\u671f\u5024\uff09: \u30b9\u30af\u30ed\u30fc\u30eb\u304c\u89aa\u8981\u7d20\u30fb\u30da\u30fc\u30b8\u306b\u9023\u9396\u3059\u308b<\/li>\n<li><strong>contain<\/strong>: \u30b9\u30af\u30ed\u30fc\u30eb\u3092\u305d\u306e\u8981\u7d20\u5185\u306b\u5c01\u3058\u8fbc\u3081\u308b\u3002\u30d0\u30a6\u30f3\u30b9\u52b9\u679c\uff08\u6163\u6027\uff09\u306f\u7dad\u6301<\/li>\n<li><strong>none<\/strong>: \u9023\u9396\u3082\u30d0\u30a6\u30f3\u30b9\u52b9\u679c\u3082\u7121\u52b9\u306b\u3059\u308b<\/li>\n<\/ul>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u30e2\u30fc\u30c0\u30eb\u5185\u3067\u30b9\u30af\u30ed\u30fc\u30eb\u304c\u80cc\u666f\u306b\u4f1d\u308f\u3089\u306a\u3044\u3088\u3046\u306b\u3059\u308b *\/\n.modal-body {\n  overflow-y: auto;\n  overscroll-behavior: contain;  \/* \u30b9\u30af\u30ed\u30fc\u30eb\u3092\u30e2\u30fc\u30c0\u30eb\u5185\u306b\u5c01\u3058\u8fbc\u3081 *\/\n  max-height: 80vh;\n}\n\n\/* \u30d7\u30eb\u30c8\u30a5\u30ea\u30d5\u30ec\u30c3\u30b7\u30e5\u3092\u7121\u52b9\u5316\u3057\u305f\u3044\u5834\u5408 *\/\nbody {\n  overscroll-behavior-y: none;  \/* \u7e26\u65b9\u5411\u306e\u307f\u5236\u5fa1 *\/\n}<\/code><\/pre><\/div>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-markup\" data-lang=\"HTML\"><code>&lt;div class=\"modal-overlay\"&gt;\n  &lt;div class=\"modal-body\"&gt;\n    &lt;!-- \u9577\u3044\u30b3\u30f3\u30c6\u30f3\u30c4 --&gt;\n    &lt;p&gt;\u9577\u3044\u30e2\u30fc\u30c0\u30eb\u30b3\u30f3\u30c6\u30f3\u30c4...&lt;\/p&gt;\n    &lt;p&gt;\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u3082\u30da\u30fc\u30b8\u80cc\u666f\u306b\u4f1d\u308f\u308a\u307e\u305b\u3093\u3002&lt;\/p&gt;\n  &lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\"><code>contain<\/code> \u3068 <code>none<\/code> \u306e\u9055\u3044\u306f\u5fae\u5999\u3067\u3001<code>contain<\/code> \u306fiOS\u306e\u30d0\u30a6\u30f3\u30b9\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\uff08\u7aef\u307e\u3067\u884c\u304f\u3068\u5c11\u3057\u8df3\u306d\u8fd4\u308b\u52d5\u304d\uff09\u3092\u6b8b\u3057\u307e\u3059\u3002UX\u3068\u3057\u3066\u306f <code>contain<\/code> \u306e\u307b\u3046\u304c\u81ea\u7136\u306b\u611f\u3058\u3089\u308c\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">position: sticky \u304c\u52b9\u304b\u306a\u3044\u3068\u304d\u306eoverfow\u539f\u56e0<\/h2>\n\n\n<p class=\"wp-block-paragraph\"><code>position: sticky<\/code> \u3092\u8a2d\u5b9a\u3057\u305f\u306e\u306b\u300c\u3061\u3083\u3093\u3068\u56fa\u5b9a\u3055\u308c\u306a\u3044\u300d\u300c\u30b9\u30af\u30ed\u30fc\u30eb\u306b\u8ffd\u5f93\u3057\u306a\u3044\u300d\u3068\u3044\u3046\u554f\u984c\u306f\u975e\u5e38\u306b\u3088\u304f\u8d77\u3053\u308a\u307e\u3059\u3002\u305d\u306e\u4e3b\u306a\u539f\u56e0\u306e1\u3064\u304c <strong>\u89aa\u8981\u7d20\u307e\u305f\u306f\u7956\u5148\u8981\u7d20\u306eoverflow\u8a2d\u5b9a<\/strong>\u3067\u3059\u3002<\/p>\n\n\n<h3 class=\"wp-block-heading\">\u306a\u305coverflow\u304csticky\u3092\u58ca\u3059\u306e\u304b<\/h3>\n\n\n<p class=\"wp-block-paragraph\"><code>position: sticky<\/code> \u306f\u3001<strong>\u30b9\u30af\u30ed\u30fc\u30eb\u30b3\u30f3\u30c6\u30ca\uff08overflow \u304c auto \/ scroll \/ hidden \u306e\u3044\u305a\u308c\u304b\u306e\u7956\u5148\u8981\u7d20\uff09\u306e\u4e2d\u3067\u306e\u307f\u8ffd\u5f93\u3057\u307e\u3059<\/strong>\u3002\u3082\u3057\u89aa\u8981\u7d20\u306b <code>overflow: hidden<\/code> \u3084 <code>overflow: auto<\/code> \u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3068\u3001\u305d\u306e\u8981\u7d20\u304c\u30b9\u30af\u30ed\u30fc\u30eb\u30b3\u30f3\u30c6\u30ca\u3068\u307f\u306a\u3055\u308c\u3001\u30da\u30fc\u30b8\u81ea\u4f53\u306e\u30b9\u30af\u30ed\u30fc\u30eb\u306b\u8ffd\u5f93\u3057\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u60aa\u3044\u4f8b: \u89aa\u306boverflow:hidden\u304c\u3042\u308b\u3068sticky\u304c\u52b9\u304b\u306a\u3044 *\/\n.parent {\n  overflow: hidden;  \/* \u2190 \u3053\u308c\u304csticky\u3092\u58ca\u3059 *\/\n}\n\n.sticky-header {\n  position: sticky;\n  top: 0;  \/* \u52b9\u304b\u306a\u3044\uff01 *\/\n}\n\n\/* \u826f\u3044\u4f8b: overflow\u3092visible\uff08\u307e\u305f\u306f\u305d\u3082\u305d\u3082\u672a\u6307\u5b9a\uff09\u306b\u3059\u308b *\/\n.parent-fixed {\n  \/* overflow: hidden; \u2190 \u524a\u9664\u307e\u305f\u306fvisible\u306b *\/\n  overflow: visible;\n}\n\n.sticky-header {\n  position: sticky;\n  top: 0;  \/* \u6b63\u5e38\u306b\u52d5\u4f5c\u3059\u308b *\/\n}<\/code><\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\">sticky\u304c\u52b9\u304b\u306a\u3044\u5834\u5408\u306e\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8<\/h3>\n\n<ul class=\"wp-block-list\">\n<li>sticky\u8981\u7d20\u306e\u89aa\u30fb\u7956\u5148\u306b <code>overflow: hidden<\/code> \/ <code>auto<\/code> \/ <code>scroll<\/code> \u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u304b\u78ba\u8a8d\u3059\u308b<\/li>\n<li>sticky\u8981\u7d20\u81ea\u8eab\u306b <code>top<\/code> \/ <code>bottom<\/code> \/ <code>left<\/code> \/ <code>right<\/code> \u306e\u3044\u305a\u308c\u304b\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b\uff08\u6307\u5b9a\u304c\u306a\u3044\u3068\u52d5\u304b\u306a\u3044\uff09<\/li>\n<li>\u89aa\u8981\u7d20\u306b\u5341\u5206\u306a\u9ad8\u3055\u304c\u3042\u308b\u304b\u78ba\u8a8d\u3059\u308b\uff08\u89aa\u304c\u5b50\u3068\u540c\u3058\u9ad8\u3055\u3060\u3068sticky\u306f\u6a5f\u80fd\u3057\u306a\u3044\uff09<\/li>\n<li><code>body<\/code> \u306b <code>overflow-x: hidden<\/code> \u3092\u6307\u5b9a\u3057\u3066\u3044\u306a\u3044\u304b\u78ba\u8a8d\u3059\u308b\uff08\u3053\u308c\u3082\u539f\u56e0\u306b\u306a\u308b\uff09<\/li>\n<\/ul>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* body\u306eoverflow-x: hidden\u304csticky\u3092\u58ca\u3059\u30d1\u30bf\u30fc\u30f3 *\/\nbody {\n  overflow-x: hidden; \/* \u2190 \u3053\u308c\u3067sticky\u304c\u52b9\u304b\u306a\u304f\u306a\u308b\u3053\u3068\u304c\u3042\u308b *\/\n}\n\n\/* \u5bfe\u7b56: html\u8981\u7d20\u306b\u79fb\u3059\u3001\u307e\u305f\u306fwrapper\u3067\u5bfe\u51e6\u3059\u308b *\/\nhtml {\n  overflow-x: hidden; \/* html\u306b\u79fb\u3059\u3068\u5f71\u97ff\u304c\u9650\u5b9a\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308b *\/\n}<\/code><\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">overflow\u306e\u3088\u304f\u3042\u308b\u30df\u30b9\u307e\u3068\u3081<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u307e\u3067\u306e\u5185\u5bb9\u304b\u3089\u3001\u5b9f\u52d9\u3067\u3088\u304f\u8d77\u3053\u308b\u30df\u30b9\u3092\u307e\u3068\u3081\u307e\u3059\u3002<\/p>\n\n\n<h3 class=\"wp-block-heading\">ellipsis\u304c\u52b9\u304b\u306a\u3044<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* NG: white-space:nowrap\u304c\u629c\u3051\u3066\u3044\u308b *\/\n.ng-ellipsis {\n  overflow: hidden;\n  text-overflow: ellipsis;\n  \/* white-space: nowrap; \u2190 \u3053\u308c\u304c\u306a\u3044\u3068\u7701\u7565\u3055\u308c\u306a\u3044 *\/\n}\n\n\/* OK: 3\u70b9\u30bb\u30c3\u30c8 + \u5e45\u306e\u5236\u7d04 *\/\n.ok-ellipsis {\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  max-width: 300px; \/* \u5e45\u306e\u5236\u7d04\u304c\u5fc5\u8981 *\/\n}<\/code><\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\">overflow:hidden\u3067\u8981\u7d20\u304c\u898b\u5207\u308c\u308b<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* NG: \u30c9\u30ed\u30c3\u30d7\u30b7\u30e3\u30c9\u30a6\u304coverflow:hidden\u3067\u5207\u308c\u308b *\/\n.card-ng {\n  overflow: hidden;\n  box-shadow: 0 4px 20px rgba(0,0,0,0.2); \/* \u5f71\u304c\u5207\u308c\u308b *\/\n}\n\n\/* OK: \u5f71\u3092\u4ed8\u3051\u308b\u8981\u7d20\u3068overflow:hidden\u3092\u5206\u96e2\u3059\u308b *\/\n.card-wrap {\n  box-shadow: 0 4px 20px rgba(0,0,0,0.2); \/* \u5916\u5074\u306e\u30e9\u30c3\u30d1\u30fc\u306b\u5f71 *\/\n}\n\n.card-inner {\n  overflow: hidden;   \/* \u5185\u5074\u3067\u30af\u30ea\u30c3\u30d7 *\/\n  border-radius: 8px;\n}<\/code><\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\">z-index\u304c\u52b9\u304b\u306a\u304f\u306a\u308b<\/h3>\n\n\n<p class=\"wp-block-paragraph\"><code>overflow: hidden<\/code> \u3092\u6307\u5b9a\u3059\u308b\u3068\u30b9\u30bf\u30c3\u30ad\u30f3\u30b0\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\uff08\u91cd\u306a\u308a\u9806\uff09\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u5b50\u8981\u7d20\u304c <code>z-index<\/code> \u3067\u4e0a\u306b\u6765\u308b\u306f\u305a\u306a\u306e\u306b\u96a0\u308c\u3066\u3057\u307e\u3046\u5834\u5408\u306f\u3001\u89aa\u306e <code>overflow: hidden<\/code> \u304c\u539f\u56e0\u306e\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30e1\u30cb\u30e5\u30fc\u3084\u30c4\u30fc\u30eb\u30c1\u30c3\u30d7\u3092\u4f5c\u308b\u969b\u306f\u7279\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* NG: overflow:hidden\u306e\u89aa\u304b\u3089\u30c4\u30fc\u30eb\u30c1\u30c3\u30d7\u304c\u306f\u307f\u51fa\u305b\u306a\u3044 *\/\n.nav-item {\n  overflow: hidden; \/* \u2190 \u3053\u308c\u304c\u539f\u56e0\u3067\u30c4\u30fc\u30eb\u30c1\u30c3\u30d7\u304c\u5207\u308c\u308b *\/\n  position: relative;\n}\n\n.tooltip {\n  position: absolute;\n  top: 100%;\n  \/* overflow:hidden\u306e\u89aa\u3067\u30af\u30ea\u30c3\u30d7\u3055\u308c\u3066\u3057\u307e\u3046 *\/\n}\n\n\/* OK: overflow:hidden\u3092\u5916\u3059\u304b\u3001\u5225\u306e\u65b9\u6cd5\u3067\u30ec\u30a4\u30a2\u30a6\u30c8\u3059\u308b *\/\n.nav-item-fixed {\n  position: relative;\n  \/* overflow: hidden; \u2190 \u524a\u9664 *\/\n}<\/code><\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u3088\u304f\u3042\u308b\u8cea\u554f\uff08FAQ\uff09<\/h2>\n\n\n<h3 class=\"wp-block-heading\">Q. overflow: hidden \u3068 overflow: clip \u306e\u9055\u3044\u306f\u4f55\u3067\u3059\u304b\uff1f<\/h3>\n\n<p class=\"wp-block-paragraph\">\u3069\u3061\u3089\u3082\u306f\u307f\u51fa\u3057\u305f\u90e8\u5206\u3092\u5207\u308a\u53d6\u308a\u307e\u3059\u304c\u3001<code>overflow: hidden<\/code> \u306f <code>Element.scrollTo()<\/code> \u3084 <code>Element.scrollLeft<\/code> \u306a\u3069\u306b\u3088\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u306e\u30b9\u30af\u30ed\u30fc\u30eb\u64cd\u4f5c\u304c\u53ef\u80fd\u3067\u3059\u3002\u4e00\u65b9 <code>overflow: clip<\/code> \u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u306e\u30b9\u30af\u30ed\u30fc\u30eb\u64cd\u4f5c\u3082\u542b\u3081\u3066\u5b8c\u5168\u306b\u4e0d\u53ef\u306b\u3057\u307e\u3059\u3002\u307e\u305f <code>overflow: hidden<\/code> \u306fBFC\u3092\u751f\u6210\u3057\u307e\u3059\u304c\u3001<code>overflow: clip<\/code> \u306f\u751f\u6210\u3057\u307e\u305b\u3093\u3002\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u30af\u30ea\u30c3\u30d7\u9818\u57df\u3092\u53b3\u5bc6\u306b\u5236\u5fa1\u3057\u305f\u3044\u5834\u5408\u306f <code>clip<\/code> \u304c\u9069\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<h3 class=\"wp-block-heading\">Q. overflow: auto\u3068overflow: scroll\u306f\u3069\u3061\u3089\u3092\u4f7f\u3046\u3079\u304d\u3067\u3059\u304b\uff1f<\/h3>\n\n<p class=\"wp-block-paragraph\">\u57fa\u672c\u7684\u306b\u306f <code>overflow: auto<\/code> \u3092\u63a8\u5968\u3057\u307e\u3059\u3002<code>auto<\/code> \u306f\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u306f\u307f\u51fa\u3057\u305f\u3068\u304d\u3060\u3051\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u304c\u73fe\u308c\u308b\u306e\u3067\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u5c11\u306a\u3044\u3068\u304d\u306b\u4e0d\u8981\u306a\u30d0\u30fc\u304c\u51fa\u307e\u305b\u3093\u3002<code>scroll<\/code> \u306f\u300c\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u306e\u6709\u7121\u3067\u30ec\u30a4\u30a2\u30a6\u30c8\u304c\u5909\u308f\u3063\u3066\u6b32\u3057\u304f\u306a\u3044\u300d\u5834\u5408\u3001\u3064\u307e\u308a\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u306e\u5e45\u5206\u306e\u30b9\u30da\u30fc\u30b9\u3092\u5e38\u306b\u78ba\u4fdd\u3057\u3066\u304a\u304d\u305f\u3044\u5834\u5408\u306b\u4f7f\u3044\u307e\u3059\u3002\u30c7\u30fc\u30bf\u30c6\u30fc\u30d6\u30eb\u306a\u3069\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u91cf\u304c\u52d5\u7684\u306b\u5909\u308f\u308bUI\u3067 <code>scroll<\/code> \u304c\u9069\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n<h3 class=\"wp-block-heading\">Q. -webkit-line-clamp \u306f\u672c\u756a\u74b0\u5883\u3067\u4f7f\u3063\u3066\u5927\u4e08\u592b\u3067\u3059\u304b\uff1f<\/h3>\n\n<p class=\"wp-block-paragraph\">2026\u5e74\u73fe\u5728\u3001Chrome\u30fbFirefox\u30fbSafari\u30fbEdge\u3059\u3079\u3066\u306e\u6700\u65b0\u7248\u3067\u52d5\u4f5c\u3057\u307e\u3059\u3002<code>-webkit-<\/code> \u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\u304c\u3064\u3044\u3066\u3044\u307e\u3059\u304c\u3001\u73fe\u5b9f\u7684\u306b\u306f\u307b\u307c\u3059\u3079\u3066\u306e\u74b0\u5883\u3067\u4f7f\u7528\u53ef\u80fd\u3067\u3059\u3002Firefox\u3067\u306f2019\u5e74\u9803\u304b\u3089\u5bfe\u5fdc\u3057\u3066\u304a\u308a\u3001IE11\u5bfe\u5fdc\u304c\u4e0d\u8981\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3042\u308c\u3070\u672c\u756a\u3067\u3082\u5b89\u5fc3\u3057\u3066\u4f7f\u3048\u307e\u3059\u3002\u305f\u3060\u3057\u3001<code>display: -webkit-box<\/code> \u3068 <code>-webkit-box-orient: vertical<\/code> \u306e\u30bb\u30c3\u30c8\u304c\u5fc5\u9808\u306a\u70b9\u306f\u5909\u308f\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n<h3 class=\"wp-block-heading\">Q. \u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u306e\u30c7\u30b6\u30a4\u30f3\u306fiOS\u3067\u3082\u5909\u66f4\u3067\u304d\u307e\u3059\u304b\uff1f<\/h3>\n\n<p class=\"wp-block-paragraph\">iOS Safari\uff08WebKit\uff09\u3067\u306f <code>::-webkit-scrollbar<\/code> \u7591\u4f3c\u8981\u7d20\u304c\u6709\u52b9\u3067\u3059\u304c\u3001<strong>\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u304c\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u578b<\/strong>\u306e\u305f\u3081\u3001PC\u30d6\u30e9\u30a6\u30b6\u306e\u3088\u3046\u306btrack\u3084thumb\u306e\u7d30\u304b\u3044\u30c7\u30b6\u30a4\u30f3\u304c\u53cd\u6620\u3055\u308c\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002iOS\u3067\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u306e\u30c7\u30b6\u30a4\u30f3\u3092\u5236\u5fa1\u3059\u308b\u3088\u308a\u3001<code>scrollbar-width: none<\/code> \u3068 <code>::-webkit-scrollbar { display: none }<\/code> \u3067\u30d0\u30fc\u3092\u975e\u8868\u793a\u306b\u3057\u3001\u30b9\u30ef\u30a4\u30d7\u30b8\u30a7\u30b9\u30c1\u30e3\u30fc\u3067\u64cd\u4f5c\u3055\u305b\u308bUI\u306b\u3059\u308b\u307b\u3046\u304c\u73fe\u5b9f\u7684\u3067\u3059\u3002<\/p>\n\n\n<h3 class=\"wp-block-heading\">Q. overscroll-behavior \u306f\u30e2\u30d0\u30a4\u30eb\u3067\u3082\u52b9\u304d\u307e\u3059\u304b\uff1f<\/h3>\n\n<p class=\"wp-block-paragraph\">Chrome for Android\u30fbiOS Safari\uff08iOS 16\u4ee5\u964d\uff09\u3068\u3082\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002\u30e2\u30d0\u30a4\u30eb\u3067\u30e2\u30fc\u30c0\u30eb\u3092\u5b9f\u88c5\u3059\u308b\u969b\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u30c1\u30a7\u30fc\u30f3\u3092\u6b62\u3081\u308b\u306e\u306b\u7279\u306b\u6709\u7528\u3067\u3001\u5f93\u6765\u306f <code>body { overflow: hidden }<\/code> \u3067\u5bfe\u51e6\u3057\u3066\u3044\u305f\u554f\u984c\u3092\u3001\u3088\u308a\u30af\u30ea\u30fc\u30f3\u306a\u65b9\u6cd5\u3067\u89e3\u6c7a\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u53e4\u3044iOS\uff0815\u4ee5\u524d\uff09\u3067\u306f <code>overscroll-behavior<\/code> \u306e\u5bfe\u5fdc\u304c\u4e0d\u5b8c\u5168\u306a\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u5bfe\u5fdc\u30d6\u30e9\u30a6\u30b6\u304c\u6c17\u306b\u306a\u308b\u5834\u5408\u306f Can I use \u3067\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n<p class=\"wp-block-paragraph\">CSS\u306e <code>overflow<\/code> \u306f\u300c\u306f\u307f\u51fa\u3057\u3092\u3069\u3046\u6271\u3046\u304b\u300d\u3092\u6c7a\u3081\u308b\u57fa\u672c\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u304c\u3001\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u306e\u30c7\u30b6\u30a4\u30f3\u30fb\u30c6\u30ad\u30b9\u30c8\u7701\u7565\u30fb\u30b9\u30af\u30ed\u30fc\u30eb\u9023\u9396\u30fbsticky\u3068\u306e\u76f8\u6027\u307e\u3067\u3001\u591a\u5c90\u306b\u308f\u305f\u308b\u5834\u9762\u3067\u6d3b\u8e8d\u3057\u307e\u3059\u3002\u672c\u8a18\u4e8b\u306e\u30dd\u30a4\u30f3\u30c8\u3092\u6574\u7406\u3057\u307e\u3059\u3002<\/p>\n\n<ul class=\"wp-block-list\">\n<li>overflow\u306e5\u5024\uff08visible\/hidden\/scroll\/auto\/clip\uff09\u306e\u9055\u3044\u3092\u7406\u89e3\u3057\u3001\u5834\u9762\u306b\u5fdc\u3058\u3066\u4f7f\u3044\u5206\u3051\u308b<\/li>\n<li><code>overflow-x<\/code> \u3068 <code>overflow-y<\/code> \u3067\u6a2a\u30fb\u7e26\u3092\u500b\u5225\u306b\u5236\u5fa1\u3067\u304d\u308b\u3002\u305f\u3060\u3057\u4e00\u65b9\u3092visible\u4ee5\u5916\u306b\u3059\u308b\u3068\u3001\u3082\u3046\u4e00\u65b9\u304c\u81ea\u52d5\u3067auto\u306b\u306a\u308b<\/li>\n<li>\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u304c\u51fa\u308b\u539f\u56e0\u306f <code>width: 100vw<\/code>\u30fb\u30cd\u30ac\u30c6\u30a3\u30d6\u30de\u30fc\u30b8\u30f3\u30fbnowrap\u30c6\u30ad\u30b9\u30c8\u30fbabsolute\u914d\u7f6e\u306a\u3069\u304c\u591a\u3044\u3002<code>* { outline: 1px solid red }<\/code> \u3067\u30c7\u30d0\u30c3\u30b0\u3059\u308b<\/li>\n<li>1\u884c\u7701\u7565\u306f <code>white-space: nowrap<\/code> + <code>overflow: hidden<\/code> + <code>text-overflow: ellipsis<\/code> \u306e3\u70b9\u30bb\u30c3\u30c8\u3002Flexbox\u5185\u3067\u306f <code>min-width: 0<\/code> \u3082\u5fc5\u8981<\/li>\n<li>\u8907\u6570\u884c\u7701\u7565\u306f <code>display: -webkit-box<\/code> + <code>-webkit-box-orient: vertical<\/code> + <code>-webkit-line-clamp: N<\/code> + <code>overflow: hidden<\/code> \u306e\u7d44\u307f\u5408\u308f\u305b<\/li>\n<li>\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u306e\u30c7\u30b6\u30a4\u30f3\u306fChrome\/Edge\u306fWebKit\u7591\u4f3c\u8981\u7d20\u3001Firefox\u306fCSS\u6a19\u6e96\u306e <code>scrollbar-color<\/code> \/ <code>scrollbar-width<\/code> \u3092\u4f7f\u3046<\/li>\n<li><code>overflow: hidden<\/code> \u306fBFC\u3092\u751f\u6210\u3059\u308b\u3002float\u89e3\u9664\u30fb\u89d2\u4e38\u30af\u30ea\u30c3\u30d7\u306b\u4f7f\u3048\u308b\u304c\u3001\u30c4\u30fc\u30eb\u30c1\u30c3\u30d7\u3084sticky\u3068\u306e\u76f8\u6027\u306b\u6ce8\u610f<\/li>\n<li>\u30b9\u30af\u30ed\u30fc\u30eb\u9023\u9396\u306f <code>overscroll-behavior: contain<\/code> \u3067\u6b62\u3081\u3089\u308c\u308b\u3002\u30e2\u30fc\u30c0\u30eb\u5b9f\u88c5\u306b\u5fc5\u9808\u306e\u30c6\u30af\u30cb\u30c3\u30af<\/li>\n<li><code>position: sticky<\/code> \u304c\u52b9\u304b\u306a\u3044\u3068\u304d\u306f\u7956\u5148\u8981\u7d20\u306e <code>overflow<\/code> \u8a2d\u5b9a\u3092\u771f\u3063\u5148\u306b\u7591\u3046<\/li>\n<\/ul>\n\n\n\n\n<!-- withmedia-related -->\n<h2 class=\"wp-block-heading\">\u95a2\u9023\u8a18\u4e8b<\/h2>\n\n\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/withcode.tech\/media\/css-position-sticky\/\">position: sticky\u3067\u8ffd\u5f93\u3055\u305b\u308b\u65b9\u6cd5<\/a><\/li>\n<li><a href=\"https:\/\/withcode.tech\/media\/css-z-index\/\">CSS z-index\u306e\u4f7f\u3044\u65b9\u5b8c\u5168\u30ac\u30a4\u30c9\uff5c\u91cd\u306a\u308a\u9806<\/a><\/li>\n<li><a href=\"https:\/\/withcode.tech\/media\/css-table-design\/\">CSS\u3067\u304a\u3057\u3083\u308c\u306a\u8868\uff08\u30c6\u30fc\u30d6\u30eb\uff09\u3092\u4f5c\u308b\u65b9\u6cd5<\/a><\/li>\n<li><a href=\"https:\/\/withcode.tech\/media\/css-modern-ui-components-30\/\">CSS\u3060\u3051\u3067\u4f5c\u308b\u30e2\u30c0\u30f3UI\u30d1\u30fc\u30c430\u9078<\/a><\/li>\n<li><a href=\"https:\/\/withcode.tech\/media\/css-media-query\/\">CSS\u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea\u5b8c\u5168\u30ac\u30a4\u30c9\uff5c\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u5bfe\u5fdc<\/a><\/li>\n<li><a href=\"https:\/\/withcode.tech\/media\/css-webdesign-technique-map\/\">CSS\u5b9f\u88c5\u30c6\u30af\u30cb\u30c3\u30af\u5b8c\u5168\u30de\u30c3\u30d7<\/a><\/li>\n<\/ul>\n\n\n\n\n<h2 class=\"wp-block-heading\">WithCode\u3092\u4f53\u9a13\u3067\u304d\u308b\u521d\u7d1a\u30b3\u30fc\u30b9\u516c\u958b\u4e2d\uff01<\/h2>\n\n<figure class=\"wp-block-image alignleft size-full\"><img decoding=\"async\" width=\"600\" height=\"500\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2024\/04\/\u30d0\u30ca\u30fc_300\u00d7250_20240425.png\" alt=\"WithCode\u3092\u4f53\u9a13\u3067\u304d\u308b\u521d\u7d1a\u30b3\u30fc\u30b9\u516c\u958b\u4e2d\uff01\" class=\"wp-image-2650\"\/><\/figure>\n\n<h3 class=\"wp-block-heading\">\u521d\u7d1a\u30b3\u30fc\u30b9(\u00a549,800)\u304c\u5b8c\u5168\u7121\u6599\u306b\uff01<\/h3>\n\n<ul class=\"wp-block-list\">\n<li><strong>\u671f\u9593\uff1a1\u9031\u9593<\/strong><\/li>\n<li><strong>\u5b66\u7fd2\u5185\u5bb9\uff1a<\/strong><br><strong>\u30ed\u30fc\u30c9\u30de\u30c3\u30d7\/\u57fa\u790e\u77e5\u8b58\/\u74b0\u5883\u69cb\u7bc9\/HTML\/CSS\/LP\u30fb\u30dd\u30fc\u30c8\u30d5\u30a9\u30ea\u30aa\u4f5c\u6210<\/strong><br><strong>\u2192 <span class=\"swl-marker mark_yellow\">\u6b63\u3057\u3044\u5b66\u7fd2\u65b9\u6cd5\u3067\u300c\u78ba\u304b\u306a\u6210\u9577\u300d\u3092\u5b9f\u611f\u3067\u304d\u308b\u30ab\u30ea\u30ad\u30e5\u30e9\u30e0\u3002<\/span><\/strong><\/li>\n<\/ul>\n\n<p>\u526f\u696d\u30fb\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u304c\u4e3b\u6d41\u306b\u306a\u3063\u3066\u3044\u308b\u4eca\u3053\u305d\u3001\u81ea\u3089\u306e\u30b9\u30ad\u30eb\u3067\u7a3c\u3052\u308b\u4eba\u6750\u3092\u76ee\u6307\u3057\u3066\u307f\u307e\u305b\u3093\u304b\uff1f<\/p>\n\n<p>\u672a\u7d4c\u9a13\u3067\u3082\u5fc3\u914d\u3059\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u521d\u7d1a\u30b3\u30fc\u30b9\u3092\u53d7\u8b1b\u3055\u308c\u308b\u65b9\u306e\u5927\u591a\u6570\u306f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u672a\u7d4c\u9a13\u3067\u3059\u3002\u307e\u305a\u306f\u7121\u6599\u30ab\u30a6\u30f3\u30bb\u30ea\u30f3\u30b0\u3067\u3001\u60a9\u307f\u3084\u4e0d\u5b89\u3092\u304a\u805e\u304b\u305b\u304f\u3060\u3055\u3044\uff01<\/p>\n\n<div class=\"wp-block-buttons\"><div class=\"wp-block-button\"><a class=\"wp-block-button__link has-white-color has-text-color has-background has-link-color wp-element-button\" href=\"https:\/\/withcode.tech\/reservation\/\" style=\"background-color:#ffbf00\"><strong>\u516c\u5f0f\u30b5\u30a4\u30c8\u304b\u3089\u7121\u6599\u30ab\u30a6\u30f3\u30bb\u30ea\u30f3\u30b0\u306b\u7533\u3057\u8fbc\u3080 \u2192<\/strong><\/a><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>\u300c\u306a\u305c\u304b\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u304c\u51fa\u3066\u3057\u307e\u3046\u300d\u300c\u30c6\u30ad\u30b9\u30c8\u304c\u30dc\u30c3\u30af\u30b9\u304b\u3089\u306f\u307f\u51fa\u3057\u3066\u5d29\u308c\u308b\u300d\u300c\u30ab\u30fc\u30c9\u578b\u30ec\u30a4\u30a2\u30a6\u30c8\u3067\u6587\u5b57\u3092\u4e00\u5b9a\u306e\u9577\u3055\u3067\u7701\u7565\u3057\u305f\u3044\u300d\u2014\u2014CSS\u3092\u66f8\u3044\u3066\u3044\u308b\u3068\u3001\u3053\u3046\u3057\u305f\u306f\u307f\u51fa\u3057\u30fb\u30b9\u30af\u30ed\u30fc\u30eb\u307e\u308f\u308a\u306e\u60a9\u307f\u306f\u65e5\u5e38\u8336\u98ef\u4e8b\u3067\u3059\u3002\u3053\u308c\u3089\u3092 [&hellip;]<\/p>\n","protected":false},"author":18,"featured_media":18294,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"swell_btn_cv_data":"","footnotes":"","vk-ltc-link":"","vk-ltc-target":""},"categories":[361],"tags":[],"class_list":["post-18165","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/posts\/18165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/comments?post=18165"}],"version-history":[{"count":1,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/posts\/18165\/revisions"}],"predecessor-version":[{"id":18175,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/posts\/18165\/revisions\/18175"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/media\/18294"}],"wp:attachment":[{"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/media?parent=18165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/categories?post=18165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/tags?post=18165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}