html - 在 html 邮件中使用 css 展开/折叠内容
问题描述
我正在构建 html 邮件,其中有一个复选框:
#table1 {display: block}
input:checked ~ #table1 {display: none}
<input id="checkbox" class="toggle" type="checkbox">
<table id="table1" style="width: 100%; border: 0; padding: 0; text-align: center; position: fixed; bottom: 0" cellpadding="9" cellspacing="0">
<td style="font-size: 9px; font-family: Verdana; color:#898a8c">hide me</td>
</table>
如果我在我的网络浏览器中打开它,它可以正常工作,但是,如果我将它作为 html 电子邮件发送(我正在使用 Outlook),选中的复选框不会发生任何事情。我知道没有办法在邮件中使用 JavaScript(这将是一个安全问题),但是,我可以让它只使用 CSS 工作吗?
解决方案
推荐阅读
- google-colaboratory - 使用 !mv 在 google colab 上的文件夹之间移动文件,但文件没有被传输?出了什么问题?
- mysql - 无法打开共享对象文件:启动 Rails 时没有这样的文件或目录 - /usr/local/bundle/gems/mysql2-0.5.3/lib/mysql2/mysql2.so (LoadError)
- reactjs - 解构 React 功能组件道具会破坏记忆吗?
- excel - 公式计算后将公式转换为值
- javascript - 如何在 React 中使用 0-999 和逗号后仅三个数字来限制数字
- python-3.x - 如何替换基类中的函数?
- excel - 发送一封电子邮件,其中包含该人的所有待处理主题
- android-alertdialog - 检查 Internet 连接,Android 中未显示警报对话框
- java - JVM Eclipse 1.8.0_92 版本不适合
- javascript - 如何对浏览器 Javascript 中的 NS ERROR FAILURE 错误做出反应