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.
親divの幅に応じて配置する必要がある4つのdivを持つモバイルWebサイトで作業しています。divの間のスペースを均等に分割する必要があります。次にいくつかの例を示します。
幅が500pxの場合、次のようになります。
300pxのときは
次の記事を確認してください:CSSを使用して複数のDIVを中央に配置します。
これと同様のSOの質問もあります。