纯css实现的城堡效果
代码语言:html
所属分类:布局界面
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> #tower { --sX: 60px; --sY: 60px; --sZ: 140px; --cF: #FFF; --cS: #F6F6F6; } #tower .face-front { border-top: 7px solid #E6E6E6; border-bottom: 10px solid #F6F6F6; display: flex; flex-direction: column; justify-content: space-between; align-items: center; } #tower .face-front .window { width: 40px; height: 40px; margin-top: 10px; background-color: #888; border-top: 2px solid #AAA; border-right: 7px solid #BBB; border-radius: 23px 23px 0 0; } #tower .face-front .door { width: 30px; height: 40px; margin-bottom: -10px; background-color: #B96; border-top: 1px solid #CCC; border-right: 5px solid #DDD; border-radius: 15px 15px 0 0; } #tower .face-side { border-right: 7px solid #BBB; border-left: 10px solid #DDD; display: flex; justify-content: flex-end; align-items: center; } #tower .face-side .window { width: 40px; height: 40px; margin-right: 10px; background-color: #666; border-top: 7px solid #BBB; border-right: 2px solid #AAA; border-radius: 0 23px 23px 0; } #tower-roof { --sX: 70px; --sY: 70px; --sZ: 100px.........完整代码请登录后点击上方下载按钮下载查看
网友评论0