请老师帮忙检查下代码写法的合理性和规范性,谢谢
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>2-2</title>
<style type="text/css">
div {
font-family: 'Microsoft Yahei';
font-size: 60px;
font-weight: bold;
line-height: 600px;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 800px;
height: 600px;
margin: auto;
text-align: center;
border: 5px solid #000;
border-radius: 50%;
/*调用动画*/
-webkit-animation-name: banner_animation;
animation-name: banner_animation;
-webkit-animation-duration: 2s;
animation-duration: 2s;
}
/*定义动画*/
@keyframes banner_animation{
from{opacity: 0;}
to{opacity: 1;}
}
</style>
</head>
<body>
<div>大家好,欢迎来到慕课网!</div>
</body>
</html>0
收起
正在回答
1回答
你好同学,效果实现正确,代码也很规范。继续加油,祝学习愉快!
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星