代码清单 1-3 使用 Selector API Query Selector Demo td { border-style: solid; border-width: 1px; font-size: 300%; } td:hover { background-color: cyan; } #hoverResult { color: green; font-size: 200%; }