「Click Me」というテキストのdivがあります
および、表示テキスト オプションが制限された「P」タグ。jqueryで「Click me」をクリックしてTextを展開する方法はありますか。もう一度クリックして非表示にします。申し訳ありませんが、私は jQuery が苦手です。方法が見つかりませんでした。
ライブデモを見る js Fiddle : http://jsfiddle.net/saifrahu28/7wKyj/
**HTML**
<div>Click me</div>
<p>
It is a long established fact that a reader
will be distracted by the readable content of a
page when looking at its layout. The point of using Lorem Ipsum
is that it has a more-or-less normal distribution of letters,
as opposed to using 'Content here, content here',
making it look like readable English. Many desktop publishing
<p>
CSS
p{
overflow: hidden;
text-overflow: ellipsis;
display: block;
white-space: nowrap;
width:100px;
}
できればそれは素晴らしいことです。