Created
August 4, 2014 08:29
-
-
Save Tenderfeel/576beb095e717de7e2f0 to your computer and use it in GitHub Desktop.
stylus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Nowrap | |
// | |
// テキストの折り返しを禁止して、かつ | |
// テキストがエリアからはみ出る場合に最後の文字の後ろに...を加えて省略する | |
// ブロック要素にのみ効果あり | |
// | |
// Markup: | |
// <p class="text_nowrap" style="width:60px">ああああああああああああああああああ</p> | |
// | |
// Styleguide 3.5 | |
// | |
.text_nowrap | |
overflow hidden | |
white-space nowrap | |
text-overflow ellipsis |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment