(视频教程推荐:css视频教程)
代码实现:
<!doctype html><html><head><style>@keyframes fade { from { opacity: 1.0; } 50% { opacity: 0.0; } to { opacity: 1.0; }}.headerbox {width:100px; background: #ff0; padding: 10px; font-size: 15px; height: 100px; animation: fade 600ms infinite;}</style></head><body><div> </div></body></html>
推荐教程:css教程
以上就是css实现div背景色闪烁效果的详细内容。
