CSS width 实例
html公开前 25 行,完整代码需登录
<style>
.width-demo {
background-color: #e8e8e8;
padding: 10px;
}
.width-item {
background-color: #2196F3;
border: 1px solid #000;
color: white;
font-size: 18px;
font-weight: bold;
text-align: center;
padding: 10px;
margin: 5px 0;
}
.width-fixed {
width: 200px;
}
.width-percent {
width: 50%;
}
.width-auto {
width: auto;
}
</style>