<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Tabbed info box</title>
<style>
html {
font-family: sans-serif;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
}
.info-box {
position: fixed;
width: 450px;
height: 400px;
top:0;
}
.fake-content {
background-color: #a60000;
color: white;
padding: 10px;
height: 2000px;
margin-left: 470px;
}
.info-box ul {
padding-left: 0;
margin-top: 0;
}
.info-box li {
float: left;
list-style-type: none;
width: 150px;
}
.info-box li a {
display: inline-block;
text-decoration: none;
width: 100%;
line-height: 3;
background-color: red;
color: black;
text-align
mdn CSS布局 列表消息盒子
于 2022-04-16 12:40:15 首次发布