Home  >  Article  >  Web Front-end  >  CSS Revealed, Cut Figure 01

CSS Revealed, Cut Figure 01

WBOY
WBOYOriginal
2016-10-17 09:11:281097browse

key-> vertical-align: top;

I like dog-eared corners, am I Brokeback Mountain?

I’m so fucking dog-eared. I love it

key->background-image: linear-gradient(to bottom right, gray 0, gray 90%, transparent 91%, transparent 100%);

The picture cutting plan is launched, starting from the cover.

The above are all tips. The book talks about a key point, the visual illusion: the midpoint of vision is a little bit above (silently say to myself, don’t use pixels, don’t dig holes for yourself...)

s
s
<span style="color: #800000;">.center-display .object</span>{<span style="color: #ff0000;">
  position</span>:<span style="color: #0000ff;"> absolute</span>;<span style="color: #ff0000;">
  width</span>:<span style="color: #0000ff;"> 0.5em</span>;<span style="color: #ff0000;">
  height</span>:<span style="color: #0000ff;"> 0.5em</span>;<span style="color: #ff0000;">
  top</span>:<span style="color: #0000ff;"> 0</span>;<span style="color: #ff0000;">
  bottom</span>:<span style="color: #0000ff;"> 0.8em</span>;<span style="color: #ff0000;">
  left</span>:<span style="color: #0000ff;"> 0</span>;<span style="color: #ff0000;">
  right</span>:<span style="color: #0000ff;"> 0</span>;<span style="color: #ff0000;">
  margin</span>:<span style="color: #0000ff;"> auto auto</span>;<span style="color: #ff0000;">
  border-radius</span>:<span style="color: #0000ff;"> 50%</span>;<span style="color: #ff0000;">
  background-color</span>:<span style="color: #0000ff;"> red</span>;<span style="color: #ff0000;">
text-indent</span>:<span style="color: #0000ff;"> -300em</span>;
}<span style="color: #800000;">
.center-display:nth-child(2) .object</span>{<span style="color: #ff0000;">
  bottom</span>:<span style="color: #0000ff;"> 0</span>;
}
View Code

Centered and slightly above the code, can you tell which one is really in the center?

Get busy living, or get busy dying.
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn