编程爱好者联盟 2016-10-15
O.REILLY@
key-> vertical-align: top;
我喜欢折角,我是断背山?
我真他妈折角了。我槽
key->background-image: linear(to bottom right, gray 0, gray 90%, transparent 91%, transparent 100%);
切图计划启动,从封面开始。
上面的都是小技巧,书中说道一个关键的点,视觉的错觉:视觉的中点在偏上一点的位置(默默对自己说,不要用像素,别给自己挖坑。。。)
s
s
.center-display .object{
position: absolute;
width: 0.5em;
height: 0.5em;
top: 0;
bottom: 0.8em;
left: 0;
right: 0;
margin: auto auto;
border-radius: 50%;
background-color: red;
text-indent: -300em;
}
.center-display:nth-child(2) .object{
bottom: 0;
} View Code居中和偏上一点点的代码,你能看出哪个是真真的放在中心吗?