body { margin: 0; padding: 0; background: url('../images/bg.png') #0E2252; background-repeat: no-repeat; background-attachment: fixed; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/background.jpg', sizingMethod='scale'); -ms-filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/background.jpg', sizingMethod='scale'); background-size: cover; -moz-background-size: cover; -webkit-background-size: cover; display: flex; flex-direction: row; align-items: center; justify-content: space-around; overflow: hidden; } .sider { display: flex; flex-direction: column; padding: 15px; width: 15%; height: 95%; background: rgba(4, 65, 136, 0.6); z-index: 998; border-radius: 15px; } .header { width: 100%; margin: 0 auto; } .header p.p1 { width: 60px; height: 60px; margin: 0 auto; margin-top: 110px; } .header p.p2 { height: 40px; margin: 0 auto; text-align: center; line-height: 40px; margin-top: 10px; font-size: 20px; color: #fec468; } .header p.p3 { height: 40px; margin: 0 auto; text-align: center; line-height: 40px; font-size: 28px; color: #bddde6; } .contain { flex: 1; overflow-y: scroll; } .contain::-webkit-scrollbar { width: 5px; background-color: #666; scrollbar-width: thin; scrollbar-color: #c1c1c1 #eee; } .contain::-webkit-scrollbar:hover { background-color: #666; } .contain::-webkit-scrollbar:active { background-color: #666; } .contain::-webkit-scrollbar-thumb { background-color: #0394C3; } .contain ul { list-style: none; padding: 0 15px 0 0; } .contain ul li { width: 100%; height: 40px; line-height: 40px; background-image: url('../images/kuang.png'); background-position: center center; background-repeat: no-repeat; background-size: 100% 100%; margin-bottom: 10px; background-color: transparent; } .contain ul li:hover { background: url('../images/chooseKuang.png') center center no-repeat; background-size: 100% 100%; /*background-color: -webkit-linear-gradient(red, blue); /* Safari 5.1 - 6.0 */ /*background-color: -o-linear-gradient(red, blue); /* Opera 11.1 - 12.0 */ /*background-color: -moz-linear-gradient(red, blue); /* Firefox 3.6 - 15 */ /*background-color: linear-gradient(red, blue); /* 标准的语法 */ } .contain ul li a { color: #57daff; display: block; width: 100%; height: 100%; text-align: center; text-decoration: none; } .contain ul li a:hover { color: #FFF; } .contain ul li a:visited { color: #00EA37; } .main { width: 80%; height: 95%; overflow: hidden; position: relative; background: rgba(4, 65, 136, 0.6); border: solid 15px transparent; border-radius: 15px; text-align: center; } .main iframe { border-radius: 1px; }