摘要:1.一个粒子的运动 一个半径为3的实心圆以画布的中心(canvas.width/2,canvas.height/2)为起点,沿着一条曲线进行移动。编写如下的HTML代码。 <!DOCTYPE html> <html> <head> <title>粒子的运动</title> </head> <body
阅读全文
摘要:1.一个沿圆周运动的圆圈 一个半径为size的圆圈以画布的中心(canvas.width/2,canvas.height/2)为起点,沿着一个圆周运动。编写如下的HTML代码。 <!DOCTYPE html> <html> <head> <title>沿圆周运动的圆圈</title> </head>
阅读全文
摘要:设页面中有<div class=' ele '></div>,定义. ele的样式规则如下: .ele { position: relative; width: 1px; height: 100px; margin: 10px 10px; border-left: 1px #B0B0B0 dashe
阅读全文
摘要:设页面中有<div class="square"></div>,若定义. square的样式规则如下: .square { margin: 20px auto; position: relative; width: 260px; height: 260px; border:5px solid #f0
阅读全文
摘要:设页面中有<div class=" vortex "></div>,若定义. vortex的样式规则和关键帧如下: .vortex { position: relative; margin: 100px auto; border-radius: 50%; width:200px; height:20
阅读全文
摘要:设页面中有<div class="pacman"></div>,若定义. pacman的样式规则为: .pacman { position: absolute; width:0px; height:0px; top:100px; left:30px; border-right:50px solid
阅读全文