开发者

In CSS, how to grow the button + button image when the button is focused?

开发者_Python百科The following code works for the button, but not for the image:

button:focus {
    width:200px;
    height:200px;
    image.width:200px;
}

Is there a way to do it in CSS?


A contained image would be part of the selector:

button:focus, button:focus img {
    width: 200px; height: 200px;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜