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.
私は正常に動作する水平メニューを持っています。解像度が変更され、実際には 1024*768 に縮小されるまでに、メニューが 2 行目に分割され、ややこしいものになります。それを1行に保つ方法、または技術的に適切なことを行う方法はありますか? PS: JQuery を使用したくありません。私は独自のコードを使用しています。前もって感謝します。
min-widthメニュー ID のプロパティを使用します。これにより、特定の制限に達した後、div が下にスライドしないように制限されます。
min-width
例えば:
#menu{ background:#A1DBE6; min-width:xx; /* You can replace your value in pixels instead of xx */}
お役に立てれば。