エントリーの編集
![loading...](https://b.st-hatena.com/bdefb8944296a0957e54cebcfefc25c4dcff9f5f/images/v4/public/common/loading@2x.gif)
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント140件
- 注目コメント
- 新着コメント
![vlxst1224 vlxst1224](https://cdn.profile-image.st-hatena.com/users/vlxst1224/profile.png)
![carolina04 carolina04](https://cdn.profile-image.st-hatena.com/users/carolina04/profile.png)
![tohokuaiki tohokuaiki](https://cdn.profile-image.st-hatena.com/users/tohokuaiki/profile.png)
![twol twol](https://cdn.profile-image.st-hatena.com/users/twol/profile.png)
![manaten manaten](https://cdn.profile-image.st-hatena.com/users/manaten/profile.png)
![ayakohiroe ayakohiroe](https://cdn.profile-image.st-hatena.com/users/ayakohiroe/profile.png)
![mohno mohno](https://cdn.profile-image.st-hatena.com/users/mohno/profile.png)
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
![アプリのスクリーンショット](https://b.st-hatena.com/bdefb8944296a0957e54cebcfefc25c4dcff9f5f/images/v4/public/entry/app-screenshot.png)
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
【2020年夏】imgタグにはwidthとheight属性を書くのがいいらしい
そうなんです。 2020年夏、ページの読み込み中にレイアウトがシフトしないように、img要素にはwidthとhe... そうなんです。 2020年夏、ページの読み込み中にレイアウトがシフトしないように、img要素にはwidthとheight属性を記述するのがいいらしいんです。 <img src="link/to/image.jpg" width="300" height="400" alt="画像の説明"> その昔、これが普通の時代もあったんですけどね。レスポンシブな時代にはwidthとheight属性を書かないのが一般的(?)になっていました。また、widthとheight属性が記述してあってもCSSでwidth: 100%; height: auto;が指定されているとレイアウトシフトが発生してしまっていました。 参考: img要素のサイズ属性の記述の有無についてのTwitterのアンケート なんでいまさら? なぜなら、2019年の後半にブラウザにレイアウトシフトを回避するための新たな機能が実装されたか
2020/07/02 リンク