在wordpress中使用page-id调用时不显示样式


Style not displaying when called using page-id in wordpress

我在这个网站工作。在主页中,我使用以下代码

调用了一个页面的内容
<?php 
$id=48; 
$post = get_post($id); 
$content = apply_filters('the_content', $post->post_content); 
echo $content;  
?>

和我的内容是

<strong>Atlanta Weekly Schedule:</strong>
Sunday Explosive Service 10am - 12:15pm
Wednesday Bible Study, 7 - 8:30pm
Friday Freedom Night (Prayer, Prophetic, Miracle &amp; Deliverance Service), 7 - 10pm
&nbsp;
&nbsp;
<strong>New York Weekly Schedule:</strong>
Sunday Explosive Service 10am - 12:15pm
Wednesday Bible Study, 7 - 8:30pm
Friday Freedom Night (Prayer, Prophetic, Miracle &amp; Deliverance Service), 7 - 10pm

正如您所看到的,我已经给出了两个带有标记的标题,但是当它显示在主页中时,源代码显示了带有但不显示为粗体的代码。谁来帮帮我!!谢谢! !

我已经检查了您的网站,并跟踪了您的css文件。在reset.css中,你提到了font-weight: inherit用于强标签。

所以它尝试从它的父元素继承这个属性。

更多信息请访问:http://www.w3schools.com/cssref/css_inherit.asp

将以下CSS添加到您的代码

strong {font- family:宋体;}

可以