teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

9

タグ

2019/06/08 06:28

投稿

old_dog
old_dog

スコア51

title CHANGED
File without changes
body CHANGED
File without changes

8

タグ追加

2019/06/08 06:28

投稿

old_dog
old_dog

スコア51

title CHANGED
File without changes
body CHANGED
File without changes

7

誤字

2019/06/08 06:28

投稿

old_dog
old_dog

スコア51

title CHANGED
File without changes
body CHANGED
@@ -24,7 +24,7 @@
24
24
  iw_t_after.remove();
25
25
  // iw_t_after.css({'cssText':'background-color:#aaa !important'}); など
26
26
 
27
-  var iw_d = $('gm-style-iw-d');
27
+  var iw_d = $('.gm-style-iw-d');
28
28
  iw_d.css({'cssText':'background:#aaf !important'});
29
29
  </script>
30
30
  ```

6

追加

2019/06/08 04:43

投稿

old_dog
old_dog

スコア51

title CHANGED
File without changes
body CHANGED
@@ -8,6 +8,8 @@
8
8
 
9
9
  ### 対象とする要素
10
10
  `<div class="gm-style-iw-t::after>`
11
+
12
+ `<div class="gm-style-iw-d>`
11
13
 
12
14
 
13
15
  ### コード

5

文法

2019/06/08 04:42

投稿

old_dog
old_dog

スコア51

title CHANGED
File without changes
body CHANGED
@@ -20,10 +20,10 @@
20
20
 
21
21
  var iw_t_after = $('.gm-style-iw-t::after');
22
22
  iw_t_after.remove();
23
- // iw_t_after.css('background-color','#aaa'); など
23
+ // iw_t_after.css({'cssText':'background-color:#aaa !important'}); など
24
24
 
25
25
   var iw_d = $('gm-style-iw-d');
26
- iw_d.css('background','#aaf');
26
+ iw_d.css({'cssText':'background:#aaf !important'});
27
27
  </script>
28
28
  ```
29
29
 

4

文法

2019/06/08 04:41

投稿

old_dog
old_dog

スコア51

title CHANGED
File without changes
body CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
  var iw_t_after = $('.gm-style-iw-t::after');
22
22
  iw_t_after.remove();
23
- // iw_t_after.css('background-color:#aaa'); など
23
+ // iw_t_after.css('background-color','#aaa'); など
24
24
 
25
25
   var iw_d = $('gm-style-iw-d');
26
26
  iw_d.css('background','#aaf');

3

書式訂正

2019/06/08 04:31

投稿

old_dog
old_dog

スコア51

title CHANGED
File without changes
body CHANGED
@@ -21,12 +21,17 @@
21
21
  var iw_t_after = $('.gm-style-iw-t::after');
22
22
  iw_t_after.remove();
23
23
  // iw_t_after.css('background-color:#aaa'); など
24
+
25
+  var iw_d = $('gm-style-iw-d');
26
+ iw_d.css('background','#aaf');
24
27
  </script>
25
28
  ```
26
29
 
27
30
  下記のように<style>に設定すると反映される
28
31
  ```
29
32
  <style>
33
+ .gm-style-iw-d {background:#aaf !important}
30
- .gm-style-iw-t::after { background:#eee !important}
34
+ .gm-style-iw-t::after { background:#aaf !important}
35
+
31
36
  </style>
32
37
  ```

2

文法訂正 !imortant追加

2019/06/08 04:23

投稿

old_dog
old_dog

スコア51

title CHANGED
File without changes
body CHANGED
@@ -27,6 +27,6 @@
27
27
  下記のように<style>に設定すると反映される
28
28
  ```
29
29
  <style>
30
- .gm-style-iw-t::after { background:#eee }
30
+ .gm-style-iw-t::after { background:#eee !important}
31
31
  </style>
32
32
  ```

1

タイトルを修正しました

2019/06/08 04:17

投稿

old_dog
old_dog

スコア51

title CHANGED
@@ -1,1 +1,1 @@
1
- jquery 要素の取得と操作
1
+ jquery google.mapsの要素の取得と操作
body CHANGED
@@ -22,4 +22,11 @@
22
22
  iw_t_after.remove();
23
23
  // iw_t_after.css('background-color:#aaa'); など
24
24
  </script>
25
+ ```
26
+
27
+ 下記のように<style>に設定すると反映される
28
+ ```
29
+ <style>
30
+ .gm-style-iw-t::after { background:#eee }
31
+ </style>
25
32
  ```