Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
箇条書きとして画像を含む単純なリストを作成する場合、エントリごとに少なくとも 3 つの要素が必要なのはなぜですか? または、コンテナ div を使用せずにエントリを新しい行に取得し、すべてを正しく配置する方法はありますか? おそらく、これには位置プロパティとフローティングの詳細な分析が必要です。
次のようなものです:
[div] [img] [inner div] [/div]
対:
[img] [inner div]
あなたの仮定は実際には正しくありません。
pseudo elements
このフィドルをチェックしてください