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;
}
精彩评论