差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| html_css:embed_youtube_media_responsive [2022/09/22 13:02] – ともやん | html_css:embed_youtube_media_responsive [2025/03/12 04:48] (現在) – [参考文献] ともやん | ||
|---|---|---|---|
| 行 7: | 行 7: | ||
| ===== CSS の内容 ===== | ===== CSS の内容 ===== | ||
| <code css> | <code css> | ||
| - | @media (max-width: 680px) { | + | .youtube { |
| - | | + | |
| - | | + | position: relative; |
| - | width: 100%; | + | width: 100%; |
| - | padding-top: | + | padding-top: |
| + | |||
| + | iframe { | ||
| + | position: absolute; | ||
| + | top: 0; | ||
| + | right: 0; | ||
| + | width: 100% !important; | ||
| + | height: 100% !important; | ||
| } | } | ||
| - | .youtube iframe { | + | |
| - | position: absolute; | + | @media (min-width: 900px) { |
| - | top: 0; | + | iframe { |
| - | right: 0; | + | width: 560; |
| - | width: 100% !important; | + | height: 315; |
| - | height: 100% !important; | + | |
| - | } | + | |
| - | } | + | |
| - | @media (min-width: 900px) { | + | |
| - | | + | |
| - | width: 560; | + | |
| - | height: 315; | + | |
| } | } | ||
| + | } | ||
| } | } | ||
| </ | </ | ||
| 行 49: | 行 50: | ||
| **※モバイルやスマホで余計な通信容量(ギガ)を消費しないように見るためにも [[web: | **※モバイルやスマホで余計な通信容量(ギガ)を消費しないように見るためにも [[web: | ||
| \\ | \\ | ||
| + | **我が家のブラ男氏🐶トイプードル🐩当時15歳サンプル😅** | ||
| + | <WRAP youtube>< | ||
| + | <iframe width=" | ||
| + | allow=" | ||
| + | </ | ||
| + | |||
| **激しいサンプル😅** | **激しいサンプル😅** | ||
| <WRAP youtube>< | <WRAP youtube>< | ||
| 行 56: | 行 63: | ||
| **ともやん再生リスト🤤**\\ | **ともやん再生リスト🤤**\\ | ||
| - | <WRAP youtube>< | ||
| - | <iframe width=" | ||
| - | allow=" | ||
| - | </ | ||
| - | |||
| <WRAP group 100%> | <WRAP group 100%> | ||
| <WRAP left column youtube>< | <WRAP left column youtube>< | ||
| 行 79: | 行 81: | ||
| **量子コンピュータを説明する - 人類の技術の限界について**\\ | **量子コンピュータを説明する - 人類の技術の限界について**\\ | ||
| - | <html> | + | <WRAP youtube><html> |
| - | | + | <iframe width=" |
| - | <iframe width=" | + | allow=" |
| - | allow=" | + | </html></WRAP>\\ |
| - | </div> | + | |
| - | </html> | + | |
| ===== トラブルシューティング ===== | ===== トラブルシューティング ===== | ||
| 行 107: | 行 107: | ||
| [[https:// | [[https:// | ||
| [[https:// | [[https:// | ||
| + | [[https:// | ||
| + | [[so> | ||
| + | |||