modern-screenshot icon indicating copy to clipboard operation
modern-screenshot copied to clipboard

css 的 text-shadow 生成图片后没有阴影效果

Open lujihong opened this issue 1 year ago • 4 comments

示例如下:

h1{
  display: flex;
  justify-content: center;
  font-size: 30px;
  font-weight: bolder;
  color: #f00;
  -webkit-text-stroke: 1px white;
  text-shadow: 2px 4px 4px rgba(0, 0, 0, 0.3); /* 设置向下的阴影效果 */
  border-radius: 8px;
  padding: 0 2px;
  white-space: nowrap;
}

lujihong avatar Jul 30 '23 13:07 lujihong