一.
项目需求
一些 CSS 属性是可以有动画效果的,这意味着它们可以用于动画和过渡。
动画属性可以逐渐地从一个值变化到另一个值,比如尺寸大小、数量、百分比和颜色。
二.代码部分
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>梦幻西游</title>
<style>
body{
/*清除默认边距 */
margin: 0px;
background-image: url(image/pic.webp);
}
.footer{
width: 760px;
height: 240px;
margin: 350px auto 0 auto;
}
.west{
float: left;
width: 190px;
height: 240px;
/*背景不重复*/
background-repeat: no-repeat;
}
.west:nth-of-type(1){
backgrou