div+Css布局实现文字段落首字母立体阴影放大效果代码
代码语言:html
所属分类:布局界面
代码描述:div+Css布局实现文字段落首字母立体阴影放大效果代码
代码标签: div Css 布局 文字 段落 首 字母 立体 阴影 放大
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { background: rgb(252, 252, 251); background: linear-gradient( 180deg, rgb(250, 250, 247) 31%, rgb(252, 208, 234) 100% ); } article { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 100%; font-size: 1rem; color: #555; padding: 1rem 1.6rem; } p { text-shadow: #1a1919 1px 1px 0; line-height: 1.4; margin-bottom: 4rem; letter-spacing: 0.5px; } pre, code { white-space: pre-wrap; /* Zorgt voor regelafbreking binnen pre en code */ word-wrap: break-word; /* Breekt lange woorden af */ overflow-wrap: break-word; /* Ondersteuning voor bredere browsercompatibiliteit */ } .p1::first-letter { font-family: "Cinzel Decorative", cursive; font-size: 4.5em; /* Nog groter zodat het over drie regels valt */ font-weight: bold; float: left; margin-right: 0.3em; line-height: 1; /* Line-height precies 1 voor strakke aflijning */ color: deeppink; text-shadow: 1px -1px 0 #767676, -1px 2px 1px #737272, -2px 4px 1px #767474, -3px 6px 1px #787777, -4px 8px 1px #7b7a7a, -5px 10px 1px #7f7d7d, -6px 12px 1px #828181, -7px 14px 1px #868585, -8px 16px 1px #8b8a89, -9px 18px 1px #8f8e8d, -10px 20px 1px #949392, -11px 22px 1px #999897, -12px 24px 1p.........完整代码请登录后点击上方下载按钮下载查看
网友评论0