code
Closed this issue · 0 comments
821190452 commented
//代码片段
<style>
html {
font-size: 16px;
}
body {
margin: 0;
}
.qiuzhi-box {
width: 300px;
margin: 1rem;
padding: 1rem;
border: 1px solid #CCCCCC;
box-sizing: border-box;
}
.qiuzhi-box::before,
.qiuzhi-box::after {
content: '';
display: table;
}
.qiuzhi-box::after {
clear: both;
}
.qiuzhi-box dt,
.qiuzhi-box dd {
padding-bottom: .25rem;
}
.qiuzhi-box dt:last-child,
.qiuzhi-box dd:last-child {
padding-bottom: 0;
}
.qiuzhi-box dt {
float: left;
width: 25%;
text-align: left;
}
.qiuzhi-box dd {
float: right;
width: 75%;
margin: 0 auto;
text-align: right;
}
</style>