大网数据广告活动
网站运营与故障问答

Does text-shadow CSS affect SEO ranking by risking a cloaking penalty?

· 52CE 我爱测

I've done googling this but didn't found any answers and would love to try this out on my website. As it's a good ranking website, I want to ask you before risking it. font-size: 50px; text-shadow: 0px 1px 1px #ddd, 0px 2px 1px #…

问题原文

原帖链接 · theRadBrad · CC BY-SA 3.0

I've done googling this but didn't found any answers and would love to try this out on my website.

As it's a good ranking website, I want to ask you before risking it.

   font-size: 50px;  
    text-shadow: 0px 1px 1px #ddd,
                 0px 2px 1px #d6d6d6,
                 0px 3px 1px #ccc,
                 0px 4px 1px #c5c5c5,
                 0px 5px 1px #c1c1c1,
                 0px 6px 1px #bbb,
                 0px 7px 1px #777,
                 0px 8px 3px rgba(100, 100, 100, 0.4),
                 0px 9px 5px rgba(100, 100, 100, 0.1),
                 0px 10px 7px rgba(100, 100, 100, 0.15),
                 0px 11px 9px rgba(100, 100, 100, 0.2),
                 0px 12px 11px rgba(100, 100, 100, 0.25),
                 0px 13px 15px rgba(100, 100, 100, 0.3);
}

Is this okay? OR CHECK THIS http://codepen.io/chriscoyier/pen/urkCd

已采纳解答

原帖链接 · Stephen Ostermiller · CC BY-SA 3.0

Google penalizes for text that is not visible to the users. White text on a white background can be used for keyword stuffing. In that case the keywords are put in the page source where Googlebot indexes them, but the font color makes it so that users don't see it.

Shadow text is not cloaking because the user can see it clearly. There is no risk of penalty of using CSS text-shadow.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2016-09-12)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。