PHP函数中的Span元素不反映样式
可以请任何人帮助修复PHP代码中的这两个问题PHP函数中的Span元素不反映样式,php,wordpress,Php,Wordpress,可以请任何人帮助修复PHP代码中的这两个问题 DIV内的Span未以蓝色反射 斜体文字也反映了DIV内部的背景颜色:#DCDC。它应该在DIV之外 function send_admin_notification($post_id,$post_title) { $blogname = get_option('blogname'); $email = get_option('admin_email'); $headers = "MIME-Version: 1.0\r\n" .
function send_admin_notification($post_id,$post_title) {
$blogname = get_option('blogname');
$email = get_option('admin_email');
$headers = "MIME-Version: 1.0\r\n" . "From:".$blogname." "."
< ".$email.">\n" . "Content-Type: text/HTML; charset=\"" . get_option('blog_charset') . "\"\r\n";
$message = __('A new post has been submitted in ','accesspress-anonymous-post').$blogname.'site.'.'
<br/>
<br/>'. '
<div style="background-color:#DCDCDC;">
<span style="font-color:Blue" New Post Submission </span>'.'
<br/>
<br/>'; 'Post Title: '.$post_title.'
<br/>
<br/>'; 'Post Module: '.$post_title.'
<br/>
<br/>
</div>';
$post_author_name = get_post_meta($post_id,'ap_author_name',true);
$post_author_email = get_post_meta($post_id,'ap_author_email',true);
$post_author_url = get_post_meta($post_id,'ap_author_url',true);
if($post_author_name!=''){
$message .= 'Post Author Name: '.$post_author_name.'
<br/>
<br/>';
}
if($post_author_email!=''){
$message .= 'Post Author Email: '.$post_author_email.'
<br/>
<br/>';
}
if($post_author_url!=''){
$message .= 'Post Author URL: '.$post_author_url.'
<br/>
<br/>';
}
$message .= '
<br/>
<br/>'.__('
<i>This is an auto generated email. For more details regarding this, please login to Wiki website','accesspress-anonymous-post.</i>');
$subject = __('Process Wiki | New Post Submission','.$post_title.'); wp_mail($email,$subject,$message,$headers);
}
函数发送管理通知($post\u id,$post\u title){
$blogname=get_选项('blogname');
$email=获取选项(“管理电子邮件”);
$headers=“MIME版本:1.0\r\n.”From:“$blogname.”
<“$email.”>\n.“内容类型:text/HTML;字符集=\”。获取选项(“blog\u字符集”)。“\”\r\n”;
$message=_uu('accesspress-anonymous-post')中提交了一篇新文章。$blogname.'site'
“
span未正确关闭
<span style="font-color:Blue" New Post Submission </span>'
span未正确关闭
<span style="font-color:Blue" New Post Submission </span>'
尝试使用内联样式
<span style = "property:value;property:value;">Some text</span>
一些文本
尝试使用内联样式
<span style = "property:value;property:value;">Some text</span>
一些文本
谢谢。但是文章标题和斜体文字没有反映出来。请检查span,div元素的打开/关闭是否可能有错误。您应该按原样使用ifdeprecated@Web34如果你觉得答案有用,请接受,谢谢。但是帖子的标题和斜体文字没有反映出来。你能接受吗请检查是否可能在打开/关闭span、div元素时出错。如果是,则应使用deprecated@Web34如果你觉得答案有用,请接受,谢谢。这不提供问题的答案。要评论或要求作者澄清,请在他们的帖子下方留下评论-你可以如何评论你自己的帖子,一旦你有足够的评论,你就可以了。谢谢。很遗憾,我的回答中的一些文本没有显示出来。这并不能回答问题。要评论或要求作者澄清,请在他们的帖子下方留下评论-你可以随时评论你自己的帖子,一旦你有了评论很抱歉,你可以。谢谢。我的答案中有一些文字不幸没有显示出来。