css布局实现一个吉他效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现一个吉他效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> html, body { background: #f3ac3c; display: flex; justify-content: center; height: 100%; } .uke { display: flex; align-items: center; margin-bottom: 16px; } .uke__body { display: flex; align-items: center; position: relative; } .uke__body::before { content: ""; display: block; width: 120px; height: 120px; background: #998235; border-radius: 130px; } .uke__body::after { content: ""; display: block; width: 100px; height: 100px; background: #998235; border-radius: 100px; margin-left: -50px; position: relative; z-index: 1; } .uke__neck { height: 20px; width: 110px; background: #1a4341; margin-left: -5px; margin-right: -5px; } .uke__head { background: #998235; width: 40px; height: 30px; border-radius: 10px; position: relative; } .uke__head:before, .uke__head:after { content: ".........完整代码请登录后点击上方下载按钮下载查看
网友评论0