简单css盒子模型代码

Document
header(.logo+nav)>
mian
article section section section
aside
  • ul>li
  • ul>li
  • ul>li
footer
header,.mian,.aside,footer{background-color: #00FFFF;} header{line-height: 3.5rem; border: 0.016rem solid black; height: 3.5rem; text-align: center; margin-bottom: 0.5rem; background-size: 2rem 2rem; background-image: url("./Vendy.jpg"); background-repeat: no-repeat; background-position:right center; background-origin: content-box; padding: 0rem 0.5rem;} .div1{width: 95%; font-size: 0rem; height: 58%; margin: auto;} .mian{width: 75%; font-size: 1rem; display: inline-block; margin-right: 1%; border: 1px solid black; height: 20rem; text-align: center; vertical-align: top;} .aside{width: 23%; display: inline-block; font-size: 1rem; text-align: center; border: 1px solid black;} ul{ list-style: none; padding-left: 0;} .article{border: 1px solid black; margin: 1.5rem 1rem 0.5rem; background-color:#00CCFF;} section{border: 1px solid black; margin: 1rem; background-color: #0099FF; line-height: 3.5rem} li{text-align: center; background-color: #00CCFF; margin: 1rem; l ine-height: 3.5rem; border: 1px solid black;} footer{margin-top: 1rem; text-align: center; border: 1px solid black; line-height: 3rem} 代码有点冗杂,多多指。

你可能感兴趣的:(学习)