纯css布局实现经典游戏机效果
代码语言:html
所属分类:游戏
代码描述:纯css布局实现经典游戏机效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> /* #e45037 red button #db9946 button background*/ body { background-color: #f5eadf; } .container { margin:auto; top:0; right:0; bottom:0; left:0; width:100vw; height:100vh; } .body { background-color: #fec742; height: 450px; width: 300px; border-radius: 10px 10px 40px 10px; border: 5px solid #2b1d0e; box-shadow: 5px 6px 20px #111; position: absolute; top: 40px; left: 300px; } .top-divide { background-color: #2b1d0e; width: 300px; height: 5px; position: absolute; top: 70px; left: 305px; } .top-divide-left { background-color: #2b1d0e; width: 5px; height: 30px; position: absolute; top: 45px; left: 330px; } .top-divide-right { background-color: #2b1d0e; width: 5px; height: 30px; position: absolute; top: 45px; left: 575px; } .speaker { background-color: #db9946; width: 50px; height: 8px; border-radius: 30px; border: 4px solid #2b1d0e; position: absolute; top: 50px; left: 345px; } .screen-divide { background-color: #2b1d0e; width: 110px; height: 4px; border-radius: 2px; position: absolute; top: 95px; left: 340px; } .screen-divide1 { background-color: #2b1d0e; width: 40px; height: 4px; border-radius: 2px; position: absolute; top: 95px; left: 530px; } .signal { background-color: wh.........完整代码请登录后点击上方下载按钮下载查看
网友评论0