ホーム HTML CSS XML JAVASCRIPT   PHP SQL MORE...   リファレンス 事例集    

CSS3 text-overflow プロパティ

CSS3 Reference 完全な CSS3 リファレンス

Use of the text-overflow property:

div.test
{
text-overflow:ellipsis;
}

Try it yourself »
More examples at the bottom of this page.

ブラウザ・サポート

Internet Explorer Firefox Opera Google Chrome Safari

text-overflow property is supported in all major browsers, except Firefox.


定義と用法

text-overflow property specifies what should happen when text overflows the containing element.

デフォルト値: clip
継承: no
バージョン: CSS3
JavaScript構文: object.style.textOverflow="ellipses"


構文

text-overflow: clip|ellipsis|string;

説明
clip Clips the text
ellipsis Render an ellipsis ("...") to represent clipped text
string Render the given string to represent clipped text


Examples

Try it Yourself - Examples

Text-overflow with a hover effect
This example demonstrates how to display the entire text when hover over the element.


関連ページ

CSS3 チュートリアル: CSS3 Text Effects


CSS3 Reference 完全な CSS3 リファレンス