質問編集履歴
2
js部分修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
});
|
31
31
|
|
32
32
|
$txt_open.click(function(){ // 続きを読む
|
33
|
-
$(this).next($
|
33
|
+
$(this).next($txt_close).css('display', 'block'); // 閉じるを表示
|
34
34
|
$(this).css('display', 'none');
|
35
35
|
$(this).prev(".more_txt").css({
|
36
36
|
'height': textHeight,
|
@@ -39,7 +39,7 @@
|
|
39
39
|
});
|
40
40
|
|
41
41
|
$txt_close.click(function(){ // 閉じる
|
42
|
-
$(this).prev($
|
42
|
+
$(this).prev($txt_open).css('display', 'block'); // 続きを読むを表示
|
43
43
|
$(this).css('display', 'none');
|
44
44
|
$(this).prev().prev(".more_txt").css({
|
45
45
|
height: textNewHeight,
|
1
質問に不要なclassをhtmlから削除
title
CHANGED
File without changes
|
body
CHANGED
@@ -60,7 +60,7 @@
|
|
60
60
|
本文が入ります。<br>本文が入ります。<br>本文が入ります。<br>本文が入ります。<br>本文が入ります。<br>本文が入ります。<br>本文が入ります。
|
61
61
|
</div>
|
62
62
|
<a href="javascript:void(0)" class="txt_btn txt_open">続きを読む<ion-icon name="chevron-down-outline"></ion-icon></a>
|
63
|
-
<a href="javascript:void(0)" class="txt_btn txt_close
|
63
|
+
<a href="javascript:void(0)" class="txt_btn txt_close">閉じる<ion-icon name="chevron-up-outline"></ion-icon></a>
|
64
64
|
</div>
|
65
65
|
</div>
|
66
66
|
|