示例工程 46-architecture
46-architecture/demo-02-utility-order/style.css
点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。
body {
margin: 0;
padding: 32px;
background: #f8fafc;
color: #0f172a;
font-family: system-ui, sans-serif;
line-height: 1.7;
}
h1 { margin: 0 0 4px; font-size: 26px; }
p { margin: 0; color: #64748b; font-size: 14px; }
.row {
display: flex;
flex-wrap: wrap;
gap: 16px;
margin-top: 20px;
}
.box {
padding: 18px 24px;
border: 1px solid #cbd5e1;
border-radius: 10px;
background: #2563eb;
color: #ffffff;
font-size: 14px;
}
/* 写在组件之前:会被 .box 覆盖 */
.u-before {
background: #ffffff;
color: #0f172a;
}
/* 写在组件之后:赢 */
.u-after {
background: #ffffff;
color: #0f172a;
}