设置过渡效果所针对的CSS属性的名称
要设置过渡效果为的CSS属性的名称,请使用CSS过渡属性。
在下面的示例中,我们将属性设置为width,还设置了持续时间:
示例
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 150px;
height: 150px;
background: blue;
transition-property: width;
transition-duration: 3s;
}
div:hover {
width: 250px;
}
</style>
</head>
<body>
<h1>Heading One</h1>
<p>Hover over the below box to change its width.</p>
<div></div>
</body>
</html>热门推荐
10 生日祝福语送老公简短
11 调皮祝福语老师文案简短
12 祝福语送顾客简短语
13 文艺乔迁祝福语简短精辟
14 立冬祝福语简短给女孩
15 饭店国庆祝福语简短
16 给老师新年祝福语 简短
17 喜得孙子祝福语简短唯美
18 学生国庆简短的祝福语