jak zrobic zeby text box i button w formularzu html był innego koloru niz biały i szary?
0
0
zmienić "temat" w Windows XP albo pobawić się stylami:
<style>
.text{border:1px solid red;background-color:cyan;color:black}
.button{border:1px solid yellow;background-color:blue;color:yellow}
</style>
<input type=text class=text ...>
<input type=button class=button ...>
ew. jak nie chcesz do każdego tagu dodawać "class" to jeszcze możesz dodać skrypt sam dodający do buttonów taką klasę:
<style>
.text{border:1px solid red;background-color:cyan;color:black}
.button{border:1px solid yellow;background-color:blue;color:yellow}
</style>
<input type=text ...>
<input type=button ...><br>
<input type=text ...>
<input type=button ...><br>
<input type=text ...>
<input type=button ...><br>
<input type=text ...>
<input type=button ...><br>
<input type=text ...>
<input type=button ...><br>
<script language="JavaScript" type="text/javascript"><!--
for(e=document.getElementsByTagName('input'),i=0;i<e.length;i++)
if((t=(k=e[i]).type)=='text' || t=='button') k.className=t;
//--></script>