首页 > 解决方案 > 原子中的代码在html中显示不同的颜色

问题描述

我正在使用 HTML 和 PHP 构建一个网站。

只是尝试下面的示例代码:

<span align="justify"
  class="lead"
  style="color:red;">Our ability to address urgency makes us special</span></span>
<p align="justify"
   class="mb-20">Being the most renowned <b>event organizers in Hyderabad</b>, we understand it well that mood to make
some party doesn’t come with prior notices. It is the enthusiasm that transforms into happiness through the party at
that moment. And, once that moment passes, the enthusiasm level doesn’t remain the same.
We at booktheparty.in thoroughly understand the sudden exuberance to party hard well. </p>

</div>
</div>
</div>
</div>
<div class="col-md-6 wow fadeInLeft"
 data-wow-duration="1s"
 data-wow-delay="0.6s">
<div class="pr-40">
    <h3 class="text-uppercase title">&nbsp;<br />&nbsp;</h3>
    <div class="row"
         style="margin-top:-7px;">
        <div class="col-sm-12 col-md-12 mb-sm-20 wow fadeInUp"
             data-wow-duration="1s"
             data-wow-delay="0.5s">
            <br>

我们在编辑器中输入代码时的原始颜色如下图所示, 在此处输入图像描述

在一页显示不同,我不知道出了什么问题 在此处输入图像描述

谁能告诉我可能出了什么问题还是没问题?

标签: javascriptphphtml

解决方案


对我来说,您似乎在某处缺少结束语。这是因为引号之间的所有内容都是橙色的,而对于正确的代码,橙色部分位于引号之前。

尝试向上滚动并查看它开始变绿的位置,这就是您缺少报价的地方。


推荐阅读