Skip to content

Instantly share code, notes, and snippets.

@imfycc
Last active April 11, 2017 03:25
Show Gist options
  • Save imfycc/f6a0206b354013756fc5 to your computer and use it in GitHub Desktop.
Save imfycc/f6a0206b354013756fc5 to your computer and use it in GitHub Desktop.

Revisions

  1. imfycc revised this gist Apr 11, 2017. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions css_wrap
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,8 @@
    自动换行
    div{
    word-wrap: break-word;
    word-break: normal;
    div{
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    }

    强迫不换行
  2. imfycc created this gist Feb 22, 2016.
    10 changes: 10 additions & 0 deletions css_wrap
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    自动换行
    div{
    word-wrap: break-word;
    word-break: normal;
    }

    强迫不换行
    div{
    white-space:nowrap;
    }