选择PHP按钮颜色更改 - 无需JavaScript

时间:2013-08-03 16:00:28

标签: html css

我有一个PHP网页,有4个独立的按钮组。我想更改为按下黄色按钮的颜色,并保持这种方式(即使页面被刷新),直到按下另一个按钮。我尽量避免使用Java,以便让我以后更改它。

这是一个小代码片段:

<head>
<style type="text/css">

body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
background: #666666;
margin: 0; 
padding: 0;
text-align: center;
color: #000000;
}

.newStyle1 {
float: left; 
}

.auto-style1 {
color: #FFFFFF;
font-size: 20px;
}

</style>
<title>Audio Control</title>
</head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<body>

<form action="" method="post" >


<fieldset style="display:inline; border:none; padding:0px; margin:0px; vertical-align:top; class="newStyle1" style="height: 450px" >
  <legend align="center"; class="auto-style1">Backyard Audio</legend>
  <br/>
  <button name="input" style="height: 1.8em; width: 10em; font-size: 16px;" value="CL2I1O1T" type="submit">Computer</button>
  <br />
  <br />
  <button name="input" style="height: 1.8em; width: 10em; font-size: 16px;" value="CL2I2O1T" type="submit">Tuner</button>
  <br />
  <br />


</form>
</body>
</html>

0 个答案:

没有答案