gpt4 book ai didi

css - CSS 是否可以将电子邮件定位为媒体类型?

转载 作者:行者123 更新时间:2023-11-28 15:35:01 25 4
gpt4 key购买 nike

我有一个以 html 格式生成的报告,如果该报告是从浏览器通过电子邮件发送的,我想阻止包含某些列。我想象一些类似于媒体类型屏幕、打印的东西。

有什么想法吗?

最佳答案

因此,如果您有一个网页,如果您希望通过电子邮件将其更改为某人(即,某人单击一个显示“通过电子邮件共享此内容”的按钮),那么您可以在 url 中添加一个变量,例如http://www.somedomain.com/page_to_be_emailed.html#email 然后使用 javascript/jQuery 检测主题标签并删除必要的元素,如下所示:

if(window.location.hash) { 
var thehash = window.location.hash;
if (thehash == "#email"){
//hide some stuff
$('div.you_want_to_hide').css({'display':'none'});
}
}

关于css - CSS 是否可以将电子邮件定位为媒体类型?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14407698/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com