HTML电子邮件 - TD悬停以更改背景色不起作用 [英] HTML email - TD hover to change back background-color not working

查看:234
本文介绍了HTML电子邮件 - TD悬停以更改背景色不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的codepen:
http://codepen.io/leongaban/pen/iJBrn

My codepen: http://codepen.io/leongaban/pen/iJBrn

请注意,这不是一个普通的网页,我正在构建一个HTML电子邮件,但是对于现代浏览器/电子邮件客户端,最好有一个简单的翻转颜色(无javascript)。不知道为什么我的悬停不起作用。

Note this isn't for a regular webpage, I'm building an HTML email, however for modern browsers / email clients it would be nice to have a simple rollover color (no javascript). Not sure why my hover isn't work.

我使用从目前发现的其他TD悬停堆栈溢出问题中找到的代码。

I'm using code found from the other TD hover stackoverflow questions I've found so far.

td.blue-button:hover {
        background-color: #267aa6;
}

你会如何创建这个?

推荐答案

查看这个小提琴

提取类

Extract the class

td.blue-button {
    background-color: #006497;
}

td.blue-button:hover {
    background-color: #267aa6;
}

这篇关于HTML电子邮件 - TD悬停以更改背景色不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆