我正在尝试发送带有一些图像的电子邮件.如果我在网页上显示图像,它们是100x宽和100px高,但如果图像高于100px,它将隐藏多余的像素.
如果我尝试通过电子邮件发送它,我无法将其剪裁出图像的多余高度.
这是我在电子邮件中发送的内容:
<img src="<?php echo base_url().$thumb;?>" style="border:1px solid #35538d;width:100px;height:100px;overflow:hidden;text-align:center;background-color:#f0f0f0;" rel="nofollow" alt="Profile Photo">
Run Code Online (Sandbox Code Playgroud) 如何使HTML按钮的onclick事件随机触发两个不同的函数之一?
我在服务器上使用PHP,在客户端上使用jQuery.单击按钮图像时使用此代码没有任何反应......
function a(){
alert('A got called!');
}
function b(){
alert('B got called!');
}
$('#button').bind('click', function(){
var rnd = Math.floor(Math.random() * 2);
if(rnd)
a();
else
b();
});
Run Code Online (Sandbox Code Playgroud)
.........
< "base_url().'images/free.png';" rel="nofollow" border='0' align='center' alt="FREE" id="button" />
Run Code Online (Sandbox Code Playgroud) 我需要删除字符串中的所有电子邮件地址和链接,并将其替换为"[已删除]",我对如何执行此操作感到有点迷失.
有人可以帮我吗?
谢谢.