css伪类
<html><head lang="en"> <meta charset="UTF-8"> <title></title> <style> div{ background-color: red; width: 200px; height: 300px; } div:hover{ background-color: green; width: 100px; height: 180px; } input:focus{ outline: none; width: 500px; height: 300px; border: 10px double yellow; } </style> </head> <body> <div>11111</div> <p></p> <input> </body></html>