div+css实现圣诞树与礼物代码
代码语言:html
所属分类:布局界面
代码描述:div+css实现圣诞树与礼物代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> .christmas-tree { font-size: 1.35vmin; position: absolute; bottom: 0%; left: 50%; transform: translate(-50%, 0%); width: 60em; height: 60em; } .christmas-tree *, .christmas-tree *::before, .christmas-tree *::after { position: absolute; box-sizing: border-box; } .leaves { --pos: 0; --mask: radial-gradient(farthest-side at 0 0, #000 94%, #0000 0) 0 0 / 50% 100% no-repeat, radial-gradient(farthest-side at 100% 0, #000 94%, #0000 0) 100% 0 / 50% 100% no-repeat, radial-gradient(farthest-side at 50% 0, #000 97%, #0000 0) -10% 0 / 50% 100% no-repeat, radial-gradient(farthest-side at 50% 0, #000 97%, #0000 0) 110% 0 / 50% 100% no-repeat, radial-gradient(farthest-side at 50% 0, #000 99%, #0000 0) 20% 0 / 50% 100% no-repeat, radial-gradient(farthest-side at 50% 0, #000 99%, #0000 0) 80% 0 / 50% 1.........完整代码请登录后点击上方下载按钮下载查看
网友评论0