svg+css实现八角花效果代码
代码语言:html
所属分类:布局界面
代码描述:svg+css实现八角花效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body { background: #222; color: #fff; margin: 0; display: flex; height: 100vh; justify-content: center; align-items: center; } svg { width: 90vmin; height: 90vmin; } path { fill: rebeccapurple; fill-opacity: .6; } path:nth-child(1n+5) { fill-opacity: .2; fill: deeppink; } </style> </head> <body> <svg viewBox="-50 -50 100 100"> <g fill="none" stroke="currentColor"> <path d="M-27.05 7.05l20 0 14.1 -14.1 0 -20 -14.1.........完整代码请登录后点击上方下载按钮下载查看
网友评论0