css绘制一幅风景画效果代码
代码语言:html
所属分类:布局界面
代码描述:css绘制一幅风景画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> div { position: absolute; box-sizing: border-box; } .container { width: 135vmin; height: 96vmin; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); overflow: hidden; } .sky { width: 100%; height: 100%; background-color: #89BFBE; z-index: -1; } .ground.first { width: 110%; height: 40%; bottom: 0; background-color: #C9BE20; } .ground.second { width: 140%; height: 25%; bottom: 0; left: -10%; background-color: #C1B726; transform: rotateZ(5deg); } .ground.third { width: 140%; height: 20%; bottom: -5%; left: -10%; background-color: #CCAD33; transform: rotateZ(-5deg); } .tree.one { width: 5vmin; height: 15vmin; bottom: 100%; left: 20%; } .tree.two { bottom: 100%; left: 30%; width: 5vmin; height: 20vmin; } .tree .body { display: block; width: 100%; height: 90%; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0