【发布时间】:2015-04-16 07:16:37
【问题描述】:
当我单击它时,我想scale(x,y) 我的<a> 元素,但它不起作用。我使用 Mozilla Firefox 网络浏览器来运行程序。
这是我的代码:
scaleElement.html
<html>
<head>
<title>CSS3 Transform and Transition</title>
<style>
a{
background-color: green;
color: white;
padding: 10px 20px;
text-decoration: none;
border: 2px solid #85ADFF;
border-radius: 30px 10px;
transition: 2s;
}
a:hover{
transform: scale(2,2);
}
</style>
</head>
<body>
<center><a href="xyz.html">click here</a></center>
</body>
</html>
【问题讨论】:
标签: html css css-transforms