Heim >Web-Frontend >HTML-Tutorial >用CSS怎样实现鼠标移上去背景颜色变色 onmouseover、onmouseout_html/css_WEB-ITnose

用CSS怎样实现鼠标移上去背景颜色变色 onmouseover、onmouseout_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-24 12:01:041903Durchsuche

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title><style type="text/css">table {	border-collapse:collapse;}td {	border:#000 solid 1px;}</style></head><body><table width="600" border="1" cellspacing="0" cellpadding="0">  <tr>    <td onmouseover="this.style.background='#666666'" onmouseout="this.style.background=''"> </td>    <td onmouseover="this.style.background='#666666'" onmouseout="this.style.background=''"> </td>  </tr>  <tr>    <td onmouseover="this.style.background='#666666'" onmouseout="this.style.background=''"> </td>    <td onmouseover="this.style.background='#666666'" onmouseout="this.style.background=''"> </td>  </tr></table></body></html>

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn