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>

 

posted @ 2015-06-16 11:47  Emyin  阅读(142)  评论(0编辑  收藏  举报