{"id":5065,"date":"2021-11-29T13:43:42","date_gmt":"2021-11-29T04:43:42","guid":{"rendered":"\/media\/?p=5065"},"modified":"2024-12-17T08:20:47","modified_gmt":"2024-12-16T23:20:47","slug":"css-aspect-ratio","status":"publish","type":"post","link":"https:\/\/www.flying-h.co.jp\/media\/2021\/11\/29\/css-aspect-ratio\/","title":{"rendered":"CSS\u3060\u3051\u3067youtube\u3092\u7e26\u6a2a\u6bd4\u56fa\u5b9a\u3067\u57cb\u3081\u8fbc\u3080"},"content":{"rendered":"\n<p>\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u3067youtube\u306e\u7e26\u6a2a\u6bd4\u3092\u56fa\u5b9a\u3057\u305f\u3044\u3053\u3068\u306f\u3088\u304f\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br>\u4eca\u307e\u3067\u306f\u306a\u306b\u304b\u3068\u3081\u3093\u3069\u304f\u3055\u3044\u3053\u3068\u3092\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001CSS\u306e\u65b0\u3057\u3044\u30d7\u30ed\u30d1\u30c6\u30a3aspect-ratio\u306e\u767b\u5834\u306b\u3088\u3063\u3066\u3068\u3066\u3082\u7c21\u5358\u306b\u5b9f\u88c5\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>iframe {\n  width: 100%;\n  height: auto;\n  aspect-ratio: 16\/9;\n}<\/code><\/pre>\n\n\n\n<p>\u305f\u3063\u305f\u3053\u308c\u3060\u3051\u3067\u3059\u3002<br>\u5e45\u306f\u4efb\u610f\u306e\u5e45\u3067\u7d50\u69cb\u3067\u3059\u3002<br>\u5e45\u306b\u5408\u308f\u305b\u3066aspect-ratio\u304c\u52dd\u624b\u306b\u9ad8\u3055\u3092\u5909\u3048\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/wtbYdeAJ7AM\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" style=\"width: 100%; height: auto; aspect-ratio: 16\/9;\"><\/iframe><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">aspect-ratio\u306e\u4f7f\u3044\u6240<\/h2>\n\n\n\n<p>\u3053\u306easpect-ratio\u3067\u3059\u304c\u3001\u3082\u3061\u308d\u3093youtube\u306e\u57cb\u3081\u8fbc\u307f\u4ee5\u5916\u3067\u3082\u4fbf\u5229\u306b\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br>\u4f8b\u3048\u3070\u4e0b\u306e\u3088\u3046\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u3002<br>aspect-ratio\u3092\u4f7f\u3048\u3070\u7c21\u5358\u306b\u5de6\u53f3\u306e\u8981\u7d20\u306e\u7e26\u6a2a\u6bd4\u3092\u56fa\u5b9a\u3057\u3066\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u5bfe\u5fdc\u3067\u304d\u3061\u3083\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<style>\n.head {\n  display: flex;\n  width: 100%;\n}\n.thumb {\n  width: 50%;\n}\n.thumb img {\n  width: 100%;\n  aspect-ratio: 54 \/ 36;\n  object-fit: cover;\n}\n.content {\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  aspect-ratio: 58 \/ 36;\n  width: calc(50% + 40px);\n  margin: 40px 0 0 -40px;\n  padding-left: 13%;\n  border: 2px solid burlywood;\n  box-sizing: border-box;\n}\n.content .heading {\n  margin: 0 0 .5em;\n}\n.content .heading .sub {\n  display: block;\n  color: burlywood;\n  font-size: clamp(12px, 2vw, 16px);\n  font-weight: bold;\n}\n.content .heading .main {\n  display: block;\n  font-size: clamp(14px, 2.5vw, 1.2em);\n  font-weight: bold;\n}\n.content .button {\n  font-size: clamp(12px, 2vw, 16px);\n}\n<\/style>\n<div class=\"head\">\n\t<div class=\"thumb\">\n\t\t<img decoding=\"async\" src=\"https:\/\/picsum.photos\/id\/1025\/400\/300\" alt=\"\" loading=\"lazy\">\n\t<\/div>\n\t<div class=\"content\">\n\t\t<p class=\"heading\">\n\t\t\t<span class=\"sub\">DOG<\/span>\n\t\t\t<span class=\"main\">Pug snugged in a blanket<\/span>\n\t\t<\/p>\n\t\t<a href=\"https:\/\/unsplash.com\/photos\/U5rMrSI7Pn4\" class=\"button\" target=\"_blank\" rel=\"noopener\"><span>page<\/span><\/a>\n\t<\/div>\n<\/div>\n\n\n\n<p>\u4ed6\u306b\u3082\u4e38\u304c\u6a2a\u4e26\u3073\u306b\u306a\u3063\u3066\u3044\u305f\u308a\u3068\u304b\u30ed\u30b4\u304c\u4e26\u3093\u3067\u3044\u305f\u308a\u3068\u304b\u3001\u8272\u3005\u306a\u5834\u9762\u3067\u4f7f\u3048\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3061\u306a\u307f\u306baspect-ratio\u306e\u30d6\u30e9\u30a6\u30b6\u5bfe\u5fdc\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3067\u3059\u3002<br><a href=\"https:\/\/caniuse.com\/mdn-css_properties_aspect-ratio\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">https:\/\/caniuse.com\/mdn-css_properties_aspect-ratio<\/a><br>IE\u4ee5\u5916\u306e\u4e3b\u8981\u30d6\u30e9\u30a6\u30b6\u3067\u3042\u308c\u3070\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>CSS\u306e\u30d7\u30ed\u30d1\u30c6\u30a3aspect-ratio\u306b\u3064\u3044\u3066\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<br>CSS\u306f\u3069\u3093\u3069\u3093\u9032\u5316\u3057\u3066\u4fbf\u5229\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u5897\u3048\u3066\u3044\u307e\u3059\u3002<br>IE\u5bfe\u5fdc\u3057\u306a\u304f\u3066\u3044\u3044\u6848\u4ef6\u304c\u5897\u3048\u3066\u304d\u305f\u306e\u3067\u305d\u3046\u3044\u3063\u305f\u4fbf\u5229\u306aCSS\u3092\u6d3b\u7528\u3057\u3066\u52b9\u7387\u3088\u304f\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u3066\u3044\u304d\u305f\u3044\u3067\u3059\u306d\u3002<br><\/p>\n\n\n<div data-post-id=\"6328\" class=\"insert-page insert-page-6328 \">\n<h2 class=\"wp-block-heading\">\u30d5\u30e9\u30a4\u30f3\u30b0\u30fb\u30cf\u30a4\u30fb\u30ef\u30fc\u30af\u30b9\u306e\u7d39\u4ecb<\/h2>\n\n\n\n<p class=\"has-small-font-size\"><a href=\"https:\/\/www.flying-h.co.jp\/\" target=\"_blank\" rel=\"noopener\" title=\"\u30d5\u30e9\u30a4\u30f3\u30b0\u30fb\u30cf\u30a4\u30fb\u30ef\u30fc\u30af\u30b9\">\u30d5\u30e9\u30a4\u30f3\u30b0\u30fb\u30cf\u30a4\u30fb\u30ef\u30fc\u30af\u30b9<\/a>\u306f\u3001\u6771\u4eac\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u5236\u4f5c\u30fbWeb\u5236\u4f5c\u4f1a\u793e\u30fbWeb\u30b7\u30b9\u30c6\u30e0\u5236\u4f5c\u4f1a\u793e\u3067\u3059\u3002\u6771\u4eac\u90fd\u53ca\u3073\u305d\u306e\u8fd1\u90ca\uff08\u9996\u90fd\u570f\uff09\u3092\u4e2d\u5fc3\u3068\u3057\u3066\u3001SEO\u5bfe\u7b56\u3092\u610f\u8b58\u3057\u305fPC\u53ca\u3073\u30b9\u30de\u30db\u306e\u30b5\u30a4\u30c8\u3092\u30ef\u30f3\u30bd\u30fc\u30b9\uff08\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u5bfe\u5fdc\uff09\u3067\u5236\u4f5c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u5b9f\u7e3e<\/h4>\n\n\n\n<p class=\"has-small-font-size\">\u30c7\u30b6\u30a4\u30ca\u30fc\u30c1\u30fc\u30e0\u306f\u3001\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30c7\u30b6\u30a4\u30f3\u3084\u30a4\u30e9\u30b9\u30c8\u306e\u5236\u4f5c\u3082\u5f97\u610f\u3068\u3057\u3066\u304a\u308a\u3001\u8457\u4f5c\u6a29\u3092\u610f\u8b58\u3057\u306a\u3044\u7d20\u6750\u306e\u63d0\u4f9b\u304c\u53ef\u80fd\u3067\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u30fb\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30c1\u30fc\u30e0\u3067\u306f\u3001Laravel\u306a\u3069\u3092\u4f7f\u7528\u3057\u305f\u30b9\u30af\u30e9\u30c3\u30c1\u304b\u3089\u306e\u30aa\u30ea\u30b8\u30ca\u30eb\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3092\u59cb\u3081\u3001WordPress\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3092\u5f97\u610f\u3068\u3057\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"has-small-font-size\">\u307e\u305f\u3001SEO\u3084\u30e9\u30f3\u30c7\u30a3\u30f3\u30b0\u30da\u30fc\u30b8\uff08LP\uff09\u3001\u5e83\u544a\u5411\u3051\u30d0\u30ca\u30fc\u306a\u3069\u3092\u4ed6\u793e\u69d8\u3067\u3084\u3063\u3066\u3044\u305f\u4f5c\u696d\u306e\u5f15\u7d99\u304e\u3067\u3082\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002\u5236\u4f5c\u5b9f\u7e3e\u306f\u591a\u6570\u3054\u3056\u3044\u307e\u3059\u306e\u3067\u3001\u304a\u5ba2\u69d8\u306b\u5408\u308f\u305b\u305f\u3054\u63d0\u6848\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"has-small-font-size\">500\u70b9\u4ee5\u4e0a\u306e<a href=\"https:\/\/www.flying-h.co.jp\/works\" target=\"_blank\" rel=\"noopener\" title=\"\u30d5\u30e9\u30a4\u30f3\u30b0\u30fb\u30cf\u30a4\u30fb\u30ef\u30fc\u30af\u30b9\u306e\u5236\u4f5c\u5b9f\u7e3e\">\u30d5\u30e9\u30a4\u30f3\u30b0\u30fb\u30cf\u30a4\u30fb\u30ef\u30fc\u30af\u30b9\u306e\u5236\u4f5c\u5b9f\u7e3e<\/a>\u30da\u30fc\u30b8\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u3067youtube\u306e\u7e26\u6a2a\u6bd4\u3092\u56fa\u5b9a\u3057\u305f\u3044\u3053\u3068\u306f\u3088\u304f\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u4eca\u307e\u3067\u306f\u306a\u306b\u304b\u3068\u3081\u3093\u3069\u304f\u3055\u3044\u3053\u3068\u3092\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001CSS\u306e\u65b0\u3057\u3044\u30d7\u30ed\u30d1\u30c6\u30a3aspect-ratio\u306e\u767b\u5834\u306b\u3088\u3063\u3066\u3068\u3066\u3082\u7c21\u5358\u306b\u5b9f\u88c5\u3067\u304d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,4],"tags":[],"class_list":["post-5065","post","type-post","status-publish","format-standard","hentry","category-website","category-markup"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.flying-h.co.jp\/media\/wp-json\/wp\/v2\/posts\/5065","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.flying-h.co.jp\/media\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.flying-h.co.jp\/media\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.flying-h.co.jp\/media\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flying-h.co.jp\/media\/wp-json\/wp\/v2\/comments?post=5065"}],"version-history":[{"count":1,"href":"https:\/\/www.flying-h.co.jp\/media\/wp-json\/wp\/v2\/posts\/5065\/revisions"}],"predecessor-version":[{"id":9605,"href":"https:\/\/www.flying-h.co.jp\/media\/wp-json\/wp\/v2\/posts\/5065\/revisions\/9605"}],"wp:attachment":[{"href":"https:\/\/www.flying-h.co.jp\/media\/wp-json\/wp\/v2\/media?parent=5065"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.flying-h.co.jp\/media\/wp-json\/wp\/v2\/categories?post=5065"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.flying-h.co.jp\/media\/wp-json\/wp\/v2\/tags?post=5065"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}