質問編集履歴

1

「.hoge2」削除dlを対象

2015/10/24 01:39

投稿

castail
castail

スコア117

test CHANGED
File without changes
test CHANGED
@@ -10,11 +10,11 @@
10
10
 
11
11
  <div class="hoge" style="display:block">
12
12
 
13
- <dl class="hoge2" style="display:none;"></dl>
13
+ <dl style="display:none;"></dl>
14
14
 
15
- <dl class="hoge2"></dl>
15
+ <dl></dl>
16
16
 
17
- <dl class="hoge2" style="display:none;"></dl>
17
+ <dl style="display:none;"></dl>
18
18
 
19
19
  <div class="hoge3" style="display:none;"></div>
20
20
 
@@ -22,17 +22,17 @@
22
22
 
23
23
  ```
24
24
 
25
- 上記構成で、「hoge」内が「style="display:block"」かつ「hoge2」の要素が全て「style="display:none"」の時のみ「hoge3」を「 style="display:block;"」に切り替えたいです。
25
+ 上記構成で、「hoge」内が「style="display:block"」かつ「dl」の要素が全て「style="display:none"」の時のみ「hoge3」を「 style="display:block;"」に切り替えたいです。
26
26
 
27
27
  ```lang-html
28
28
 
29
29
  <div class="hoge" style="display:block">
30
30
 
31
- <dl class="hoge2" style="display:none;"></dl>
31
+ <dl style="display:none;"></dl>
32
32
 
33
- <dl class="hoge2" style="display:none;"></dl>
33
+ <dl style="display:none;"></dl>
34
34
 
35
- <dl class="hoge2" style="display:none;"></dl>
35
+ <dl style="display:none;"></dl>
36
36
 
37
37
  <div class="hoge3" style="display:block;"></div>
38
38
 
@@ -46,7 +46,7 @@
46
46
 
47
47
  ・「hoge」要素は同一ページ内に複数あるため、各組ごとに処理したいです。
48
48
 
49
- ・「hoge2」のstyle属性は別のナビゲーションにより動的に切り替わるため、読み込み時の1回のみの処理ではありません。
49
+ ・「dl」のstyle属性は別のナビゲーションにより動的に切り替わるため、読み込み時の1回のみの処理ではありません。
50
50
 
51
51
 
52
52