Maison > interface Web > tutoriel HTML > le corps du texte

CSS揭秘,切图01

WBOY
Libérer: 2016-10-17 09:11:28
original
1076 Les gens l'ont consulté

key-> vertical-align: top;

我喜欢折角,我是断背山?

我真他妈折角了。我槽

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

切图计划启动,从封面开始。

上面的都是小技巧,书中说道一个关键的点,视觉的错觉:视觉的中点在偏上一点的位置(默默对自己说,不要用像素,别给自己挖坑。。。)

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>;
}
Copier après la connexion
View Code

居中和偏上一点点的代码,你能看出哪个是真真的放在中心吗?

Get busy living, or get busy dying.
Étiquettes associées:
source:php.cn
Déclaration de ce site Web
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Tutoriels populaires
Plus>
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!