css text-stroke及paint-order属性实现文字描边填充效果代码
代码语言:html
所属分类:布局界面
代码描述:css text-stroke及paint-order属性实现文字描边填充效果代码
代码标签: css text-stroke paint-order属性 文字 描边 填充
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> h1, h2, p, code { --stroke-color: black; --stroke-size: 10px; color: white; -webkit-text-stroke: var(--stroke-size) var(--stroke-color); paint-order: stroke fill; } code { --stroke-size: 4px; --stroke-color: white; color: rebeccapurple; font-size: 1rem; } pre { text-align: left; padding: 20px; background: rgba(0, 0, 0, 0.9); .........完整代码请登录后点击上方下载按钮下载查看
网友评论0