<分区>
如果文本部分的颜色“单击此处了解更多详细信息”,我正在尝试更改颜色。当我将颜色参数应用为蓝色时,颜色没有变化。
{% if value == 'Windows Server' %}
<p style="font-size: 15px;font-weight:400;background-color:#ccffff;color=blue"><a href="https://d-looker.sys.cigna.com/dashboards/000"><b>Click here for more details.</b></a></p>
{% elsif value == 'SharePoint' %}
<p style="font-size: 15px;background-color:#ccffff;color=blue"><a href="https://d-looker.sys.cigna.com/dashboards/111"><b>Click here for more details.</b></a></p>
{% elsif value == 'Remote Site' %}
<p style="font-size: 15px;background-color:#ccffff;color=blue"><a href="https://d-looker.sys.cigna.com/dashboards/1"><b>Click here for more details.</b></a></p>
{% elsif value == 'NAS' %}
<p style="font-size: 15px;background-color:#ccffff;color=blue"><a href="https://d-looker.sys.cigna.com/dashboards/2"><b>Click here for more details.</b></a></p>
{% elsif value == 'Linux Server' %}
<p style="font-size: 15px;background-color:#ccffff;color=blue"><a href="https://d-looker.sys.cigna.com/dashboards/112"><b>Click here for more details.</b></a></p>
{% else %}
<p style="font-size: 15px;background-color:#ccffff;color=blue"><p style="color: blue; background-color: white"></b>No Dashboard Found</p>
{% endif %}
最佳答案
这是因为你写的是 color=blue
而不是 color:blue
。您正确地完成了所有其余的内联 css,但您一定是搞混了,忘记了最后一点的格式。
关于html - 文本颜色格式不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48894136/