css伪类

<html><head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style>
        div{
            background-color: red;
             200px;
            height: 300px;
        }

        div:hover{
            background-color: green;
             100px;
            height: 180px;
        }

        input:focus{
            outline: none;
             500px;
            height: 300px;
            border: 10px double yellow;
        }
    </style>
</head>
<body>
   <div>11111</div>
   <p></p>
   <input>

</body></html>
原文地址:https://www.cnblogs.com/yintingting/p/4580344.html