*{margin: 0;padding: 0;box-sizing: border-box;}
ul,ol{
    list-style: none;
}
img {
    max-width: 100%;
}
.logo {
    background: gray;
    /* display: inline-block; */
    /* 这个可以删掉 */
    float: left;
    margin-top: 8px;
    margin-left: 10px ;
}
.logo > img {
    height: 26px;
    vertical-align: top;
}
.clearfix::after{
    content: "";
    clear: both;
    display: table;
}
.nav {
    float: right;
    margin-left: 20px;
}
ul > li {
    float: left;
    padding: 0.3em 0.5em;
    line-height: 32px;
}
ul {
    display: inline-block;
}
header {
    background-color: gray;
    color: aliceblue;
}
.content {
    width: 800px;
    /* margin: 0 auto; */
    /* 下面这两句比较好 因为下面这两句没有覆盖本身的 auto */
    /* CSS 有个重要的原则就是 不该写的代码不要写 改写的代码不要少 */
    /* 如果你是个 块级元素 他们的宽度都是固定的，那么左边右边 margin auto 就会让你居中 */
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
}
.content > aside {
   width: 200px;
   height: 300px;
   float: left;
   background: #999;
}
.content > main {
    height: 300px;
    width: 500px;
    float: left;
    background: #ccc;
}
.content > .ad {
    height: 300px;
    width: 100px;
    float: left;
    background: black;
}
.imagesList {
    outline: 1px solid green;
    width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
}
.imagesList > .x > .image {
    width: 191px;
    height: 191px;
    background: black;
    border: 1px solid red;
    float: left;
    margin-bottom: 10px;
    margin-right: 12px;
}
/* 负 margin  */
.imagesList > .x {
    margin-right: -12px;
}