HTML代码1<div class="box">闪烁效果</div> CSS代码12345678910111213141516171819202122232425262728293031323334/*文字闪烁*/.box1{ color:red; animation: changeshadow 6s ease-in infinite ; -webkit-animation: changeshadow 6s linear infinite; -moz-animation: changeshadow 6s linear infinite; -ms-animation: changeshadow 6s linear infinite; -o-animation: changeshadow 6s linear infinite;}@keyframes changeshadow { 0%{ text-shadow: 0 0 4px red} 50%{ text-shadow: 0 0 40px red} 100%{ text-shadow: 0 0 4px red}}@-webkit-keyframes changeshadow { 0%{ text-shadow: 0 0 4px red} 50%{ text-shadow: 0 0 40px red} 100%{ text-shadow: 0 0 4px red}}@-moz-keyframes changeshadow { 0%{ text-shadow: 0 0 4px red} 50%{ text-shadow: 0 0 40px red} 100%{ text-shadow: 0 0 4px red}}@-ms-keyframes changeshadow { 0%{ text-shadow: 0 0 4px red} 50%{ text-shadow: 0 0 40px red} 100%{ text-shadow: 0 0 4px red}}@-o-keyframes changeshadow { 0%{ text-shadow: 0 0 4px red} 50%{ text-shadow: 0 0 40px red} 100%{ text-shadow: 0 0 4px red}} PS.来源:一些有趣的 html/css 特效