如何在Thunderbird中创建剧透 [英] How to create spoiler in Thunderbird
本文介绍了如何在Thunderbird中创建剧透的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我想问一下如何在电子邮件中创建剧透.我使用的是Mozilla雷鸟.
这是我尝试过的代码:
Hi guys,
I wanna ask on how to create spoiler in email. I use mozilla thunderbird.
Here''s the code i''ve tried :
<div id="spoiler" style="display:none">
Spoiler Content Here
</div>
<button title="Click to show/hide content" type="button" onclick="if(document.getElementById('spoiler').style.display=='none') {document.getElementById('spoiler').style.display=''}else{document.getElementById('spoiler').style.display='none'}">Show/hide</button>
好吧,结果:按钮很好,但是当我单击按钮时什么也没发生.
我的代码有什么问题吗?
非常感谢
-Y
Well, the result : button is good, but when i clicked the button nothing happened.
Is there anything wrong with my code?
many thanks
-Y
推荐答案
此处: http://www.dug-portal.com/2009/10/einfacher-javascript-spoiler.html [
Here: http://www.dug-portal.com/2009/10/einfacher-javascript-spoiler.html[^]
Is a simple code that would do the trick.
这篇关于如何在Thunderbird中创建剧透的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文