我使用codeigniter发送电子邮件...激活用户帐户后,它会发送另一封电子邮件来插入标签,但是当用户收到消息时,没有标签出现,但是当我尝试使用其他元素时,或者呈现样式但是怎么样没有T'
$message = 'Congratulations! Use the script below to add your widget.<br>';
$message .= "<iframe frameborder=\"0\" src=\"<?=base_url() ?>business/widget/{$id}\" height=\"320px;\" width=\"480px\" style=\"border: 1px solid #ccc;\"></iframe>";
$this->email->message($message);
if($this->email->send())
{
other code....
}
Run Code Online (Sandbox Code Playgroud) 这是来自twitter bootstrap的示例代码。。。
<div class="modal">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Modal header</h3>
</div>
<div class="modal-body">
<p>One fine body…</p>
</div>
<div class="modal-footer">
<a href="#" class="btn">Close</a>
<a href="#" class="btn btn-primary">Save changes</a>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
情况是这样的:我有一个重定向页面,我想显示模式。是的,我当然使它显示了,但是如何关闭它呢?我尝试了不同的点击功能,但没有任何反应。
我上传了一张图片,我希望将其重新调整为200x200,70x70,40x40,每次调整尺寸时,它只会给我2张原始照片和1张拇指图像200x200.我该怎么做呢?这是我的代码:
public function resize($path, $file)
{
$data = array(200, 70, 40);
foreach($data as $d) :
$config['image_library'] = 'gd2';
$config['source_image'] = $path;
$config['create_thumb'] = true;
$config['maintain_ratio'] = true;
$config['width'] = $d;
$config['height'] = $d;
$config['new_image'] = './uploads/' . $d . $file;
$this->load->library('image_lib', $config);
$this->image_lib->resize();
$this->image_lib->clear();
endforeach;
}
Run Code Online (Sandbox Code Playgroud)