Deprecated: imwpcache\f884414bce24ee67f\f73723ec7b1919fa5::__construct(): Implicitly marking parameter $YECBGYFECGEAFWHA as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/www.chuangxiangniao.com/wp-content/plugins/imwpcache-dist/build/f884414bce24ee67ff73723ec7b1919fa5.php on line 2

Deprecated: imwpcache\f884414bce24ee67f\f73723ec7b1919fa5::__construct(): Implicitly marking parameter $BBWFDDBHHYHDXXAB as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/www.chuangxiangniao.com/wp-content/plugins/imwpcache-dist/build/f884414bce24ee67ff73723ec7b1919fa5.php on line 2
css怎么设置字体立体_创想鸟

css怎么设置字体立体

html代码:

前端开发

css怎么设置字体立体

css怎么设置字体立体?

css里面还是首先来全局的设置,为了避免视觉疲劳,我们修改了背景颜色和文字颜色。

body{    background-color: #666;  }  @import url(http://fonts.googleapis.com/css?family=Dosis:500,800);  .text {      font-family:"微软雅黑", "Dosis", sans-serif;      font-size: 80px;      text-align: center;      font-weight: bold;      line-height:200px;      text-transform:uppercase;      position: relative;  }

然后是简单的效果的核心代码

立即学习“前端免费学习笔记(深入)”;

/*简单的效果*/

.effect01{    background-color: #7ABCFF;    color:#FFD300;    text-shadow:        0px 0px 0 #b89800,         1px -1px 0 #b39400,         2px -2px 0 #ad8f00,         3px -3px 0 #a88b00,         4px -4px 0 #a38700,         5px -5px 0 #9e8300,         6px -6px 0 #997f00,         7px -7px 0 #947a00,         8px -8px 0 #8f7600,         9px -9px 0 #8a7200,         10px -10px 0 #856e00,         11px -11px 0 #806a00,         12px -12px 0 #7a6500,         13px -13px 12px rgba(0, 0, 0, 0.55),         13px -13px 1px rgba(0, 0, 0, 0.5);}

从中我们可以看出,利用text-shadow实现立体效果的要素有三:

设置多个阴影实现纵深感,

阴影的水平和垂直偏移变化实现方向感,

阴影的颜色渐变实现错落感。

以上就是css怎么设置字体立体的详细内容,更多请关注创想鸟其它相关文章!

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/1614628.html

赞 (0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
css border-width属性怎么用
上一篇 2025年12月24日 04:26:51
css box-ordinal-group属性怎么用
下一篇 2025年12月24日 04:26:59

相关推荐

发表回复

登录后才能评论
关注微信