質問編集履歴

2

追記

2017/03/18 05:20

投稿

castail
castail

スコア117

test CHANGED
File without changes
test CHANGED
@@ -71,3 +71,9 @@
71
71
  その際当然name3も自動で「background-color: rgb(255, 255, 255);」に切り替わります。
72
72
 
73
73
  質問内容に関係ないかもしれませんが念のため共有いたします。
74
+
75
+
76
+
77
+ =追記=
78
+
79
+ 今回既存ページの改修のためinlineのstyle属性を外部cssなどに変更したり、html構成を変えるなどの前提条件の変更はできないので上記構成で実現可能な方法でご教授頂ければ有り難いです。

1

編集

2017/03/18 05:20

投稿

castail
castail

スコア117

test CHANGED
File without changes
test CHANGED
@@ -14,9 +14,9 @@
14
14
 
15
15
  <input type="text" name="name4" value="" style="background-color: rgb(255, 255, 255);" class="hoge1 hoge2">
16
16
 
17
- <label style="background-color: rgb(255, 221, 221);"><input name="check1" type="checkbox" class="hoge1">texttexttext</label>
17
+ <label style="background-color: rgb(255, 221, 221);" class="hoge1"><input name="check1" type="checkbox" >texttexttext</label>
18
18
 
19
- <label style="background-color: rgb(255, 255, 255);"><input name="check2" type="checkbox" class="hoge1 hoge2">texttexttext</label>
19
+ <label style="background-color: rgb(255, 255, 255);" class="hoge1 hoge2"><input name="check2" type="checkbox">texttexttext</label>
20
20
 
21
21
  ```
22
22