質問編集履歴
2
追記
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
編集
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"
|
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"
|
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
|
|