div+js实现篮球计分牌显示效果代码
代码语言:html
所属分类:其他
代码描述:div+js实现篮球计分牌显示效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@font-face {
font-family: 'Digital Display';
src: url('//repo.bfw.wiki/bfwrepo/fonts/Digital-Display.woff2') format('woff2'),
url('//repo.bfw.wiki/bfwrepo/fonts/Digital-Display.woff2') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
/*
!Variables
*/
:root{
--background-color: rgb(5, 5, 5);
--background-color1: rgb(6, 42, 139);
--text-color1: rgb(255, 217, 0);
--text-color2: rgb(255, 255, 255);
}
body{
margin:0;
box-sizing: border-box;
background-color: var(--background-color);
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.container {
position: absolute;
top: 44%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 800px;
height: 600px;
}
.text {
text-transform: uppercase;
color: var(--text-color2);
}
h1 {
margin-bottom: 1em;
}
.scoreboard {
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
width: 100%;
height: 100%;
border-radius: 8px;
background-color: var(--background-color1);
border: 7px solid white;
outline: 10px solid var(--background-color1);
}
.team-container {
display: flex;
flex-direction: column;
align-items: center;
}
h2 {
font-size: 5em;
margin-top: 0;
margin-bottom: 10px;
}
.one {
position: relative;
width: 18em;
height: 10em;
margin-bottom: 30px;
background-color: #0c0c0c ;
}
.pts-shadow {
font-family: 'Digital Display.........完整代码请登录后点击上方下载按钮下载查看
网友评论0