站长答疑:(张先生) | 手机:18616712339 | 在线QQ: | . |
|
钮门快递软件 >> 常见问题 如何用css控制鼠标浮在td上面,td的背景变色
<!-- 以下是javascript实现 -->
<table border="1" cellspacing="0" cellpadding="0" align="center"> <tr height="50"> <td width="50" onmouseover="this.style.backgroundColor ='#33CC00';" onmouseout="this.style.backgroundColor ='#fff';">1</td> <td width="50" onmouseover="this.style.backgroundColor ='#33CC00';" onmouseout="this.style.backgroundColor ='#fff';">2</td> <td width="50" onmouseover="this.style.backgroundColor ='#33CC00';" onmouseout="this.style.backgroundColor ='#fff';">3</td> </tr> <tr height="50"> <td width="50" onmouseover="this.style.backgroundColor ='#33CC00';" onmouseout="this.style.backgroundColor ='#fff';">4</td> <td width="50" onmouseover="this.style.backgroundColor ='#33CC00';" onmouseout="this.style.backgroundColor ='#fff';">5</td> <td width="50" onmouseover="this.style.backgroundColor ='#33CC00';" onmouseout="this.style.backgroundColor ='#fff';">6</td> </tr> <tr height="50"> <td width="50" onmouseover="this.style.backgroundColor ='#33CC00';" onmouseout="this.style.backgroundColor ='#fff';">7</td> <td width="50" onmouseover="this.style.backgroundColor ='#33CC00';" onmouseout="this.style.backgroundColor ='#fff';">8</td> <td width="50" onmouseover="this.style.backgroundColor ='#33CC00';" onmouseout="this.style.backgroundColor ='#fff';">9</td> </tr> </table> 钮门快递软件|EMMIS[2017.04.18-14:45]编辑:钮门快递软件|EMMIS 访问:1421
|
|
关于本网站
|
... |
物流查询工具
|
网站快速通道
|
其他服务与支持
|