CSS 样式注意、常识

padding 的值,不能为负数。

使用 absolute 后,在定义好 width 和 height ,使用 border 的 width 和 height 会变大、变宽。

设置好看的细线 

.thinBorder:after{

    content: '';

    width: 100%;

    display: block;

    border-top: 1px solid #ccc;

    position: absolute;

    left: 0;

    bottom: 0px;

    -webkit-transform: scaleY(0.5);

    -webkit-transform-origin: 0% 0%;

}

评论

暂无评论