如何讓多個div橫向排列而不換行

現象 多個div排列在一行,包裹的框寬度不足時,那麼會換行顯示 如圖 解決 關鍵點在於white-space: nowrap;的使用 效果 代碼css <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, i
相關文章
相關標籤/搜索