1. 论坛系统升级为Xenforo,欢迎大家测试!
    Dismiss Notice

老鬼啊,问你一个css的问题,谢谢!

Discussion in '前端开发' started by Kevin, Dec 14, 2008.

  1. Kevin

    Kevin New Member

    Joined:
    Oct 23, 2005
    Messages:
    12,728
    Likes Received:
    55
    http://www.bluefeel.com/snow_in_your_blog/

    对于第一个代码框,有没有办法能过css把第一行强制打散成两行,这样那个超难看的左右滚动条就不会出现,就好像第二个代码框那样?


    其它会的牛人也帮一下忙吧,我实在受不了那个超难看的左右滚动条。:sleep:
     
  2. DKEN

    DKEN Well-Known Member

    Joined:
    Aug 7, 2006
    Messages:
    3,358
    Likes Received:
    33
    好像是 white-space : normal;
     
  3. laogui

    laogui Administrator
    Staff Member

    Joined:
    Aug 30, 2005
    Messages:
    15,216
    Likes Received:
    35
    pre里搞自动换行很麻烦,你去百度搜“pre 自动换行”有不少答案,你试试吧,我没试过。
     
  4. DKEN

    DKEN Well-Known Member

    Joined:
    Aug 7, 2006
    Messages:
    3,358
    Likes Received:
    33
    pre{white-space : normal; }

    这样是可以的,我用过。
     
  5. 笔架山下

    笔架山下 New Member

    Joined:
    Sep 5, 2005
    Messages:
    429
    Likes Received:
    2
    不懂的路過 順便看看自己的新頭像。
     
  6. Kevin

    Kevin New Member

    Joined:
    Oct 23, 2005
    Messages:
    12,728
    Likes Received:
    55
    谢谢楼上的所有N人,我等一下试!
     
  7. Kevin

    Kevin New Member

    Joined:
    Oct 23, 2005
    Messages:
    12,728
    Likes Received:
    55
    果然没错,哈,谢谢~