第一次看到html的动画效果,好神奇

本文介绍了许多不同种类的水果,仅香蕉就有超过500种不同的品种。除此之外,还有数不胜数的苹果、橙子等其他知名水果,使得消费者面对的选择成千上万。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>example</title>
<style type="text/css">
p{
padding: 4px;
border: thin solid black;
margin: 2px;
background-color: lightgray;
font-family: sans-serif;
}
#banana{
font-size: large;
border: medium solid black;
}
#banana:hover{
-webkit-animation-delay: 100ms;
-webkit-animation-duration: 500ms;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
-webkit-animation-name: 'GrowShrink';
}
@-webkit-keyframes GrowShrink{
from{
font-size: xx-small;
border: thin solid black;
background-color: red;
}
to{
font-size: x-large;
border: medium solid white;
background-color: green;
color: white;
padding: 4px;
}
}
</style>
</head>
<body>
<p>
There are lots of different kinds of fruit.there are over 500 varieties of <span id="banana">banana</span> alone.By the time we add the countless types of apples, orange,and other well-known fruit,we are faced with thousands of choices.
</p>
</body>
</html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值