- button
- half-transparent-border
- multiple-borders
- callout
- extended-bg-position
- inner-rounding
- stripes
- gridding
- polka
- checkerboard
- marching-ants
- footnote
- ellipse
- half-ellipse
- parallelograms-pseudo
- diamond-images
- bevel-corners-gradients
- scoop-corners
- trapezoid-tabs
- pie-static
- shadow
- color-tint-filter
- frosted-glass
- folded-corner
- hypenation
- line-breaks
- zebra-lines
- tab-size
- ampersands
- underlines
- text-effects
- circular-text
- cursor
- hit-area
- checkboxes
- weaken-background-by-shadow
- weaken-background-by-blur
- scrolling-hints
- image-slider
- intrinsic-sizing
- table-column-widths
- styling-sibling-count
- fluid-fixed
- vertical-centering
- sticky-footer
- bounce
- elastic
- frame-by-frame
- text-blink
- text-typing
- state-animations
- circular
文章来源于网络收集而来,版权归原创者所有,如有侵权请及时联系!
text-effects
letterpress
<style>
p {
max-width: 300px;
padding: .5em;
}
.letterpresss {
font-size: 200%;
background: hsl(210, 13%, 30%);
color: hsl(210, 13%, 80%);
text-shadow: 0 -1px 1px black;
}
</style>
<p class="letterpresss">The only way to get rid of outdated is keeping learning.</p>
stroked-text
- text-shadow
<style>
h1 {
background: deeppink;
padding: .5em;
}
.stroked-text {
font-size: 350%;
color: white;
text-shadow: 1px -1px black, 1px 1px black, -1px 1px black, -1px -1px black;
}
</style>
<h1 class="stroked-text">CSS</h1>
- svg
<style>
h1 {
font: 350%/1 Rockwell, serif;
background: deeppink;
color: white;
padding: .5em;
}
h1 text {
fill: currentColor;
}
h1 svg {
overflow: visible
}
h1 use {
stroke: black;
stroke-width: 6;
stroke-linejoin: round;
}
</style>
<h1>
<svg width="2em" height="1.2em">
<use xlink:href="#css"></use>
<text id="css" y="1em">CSS</text>
</svg>
</h1>
glow
<style>
a {
display: block;
width:180px;
line-height:90px;
background: #203;
color: white;
transition: 2s;
text-transform: capitalize;
text-align: center;
font-size: 300%;
}
a:hover {
color:transparent;
text-shadow: 0 0 .1em white, 0 0 .3em white;
}
</style>
<a>glow</a>
Or use filter:
<style>
a {
display: inline-block;
padding: .7em 1em;
background: #203;
color: white;
transition: 1s;
}
a:hover {
filter: blur(.05em);
}
</style>
<a>glow</a>
extruded
<style>
h1 {
width:120px;
line-height:50px;
color: white;
text-align: center;
font-size: 200%;
font-family: "Bitstream Vera Sans",sans-serif;
background: hsl(0, 50%, 45%);
text-shadow:
1px 1px black,
2px 2px black,
3px 3px black,
4px 4px black,
5px 5px black,
6px 6px black,
7px 7px black,
8px 8px black;
}
</style>
<h1>retro</h1>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论