我有我的導航區域橫向顯示的項目列表,但它的包裝紙中間環節,這樣如何避免使用CSS中間鏈接換行?
| This is Item One | This is Item Two | This is Item Three | This is
Item Four | This is Item Five |
時,我想它來包裝這樣的:
| This is Item One | This is Item Two | This is Item Three
| This is Item Four | This is Item Five |
我試着使用我的鏈接項目(li a)上的whitespace: nowrap
聲明,但這只是使第二個(包裝)行完全消失。
發佈你的代碼,所以我們可以看到,你試過了什麼 – HerrSerker
如果你的添加有任何效果,你必須拼寫屬性名稱'white-space'。如果效果是你所描述的,那麼混亂是由你沒有描述的頁面上的東西造成的。 –