【问题标题】:What does the text within the curly brackets (and the vertical lines within them) represent?花括号内的文字(以及其中的垂直线)代表什么?
【发布时间】:2019-09-13 11:56:06
【问题描述】:

见下文:

<p
style="margin: 0px; text-align: left; color: #666666; line-height: 25px; 
font-family: Tahoma, Verdana, Geneva, sans-serif; font-size: 14px; font-weight: bold;">
&bull; {|FeatureFour|}</p>

所以上面是一个标准的段落标签,但带有额外的文本(看起来像是某种变量);

代码来自我遇到的一个随机标记文件,我很想看看它代表什么。

【问题讨论】:

  • 从 html 的角度来看,它只是文本。然而,可能是使用了一些框架,用一些数据替换了文本,但你不能仅仅通过查看 html 来确定这一点。
  • 通常是一些 HTML 模板引擎使用这种标记
  • 好的,谢谢大家,我也在想它可能是一些框架或包,它可以查看 HTML 并在其中动态插入某些内容

标签: html template-engine


【解决方案1】:

&amp;bull 让您使用项目符号,而 {|FeatureFour|}&lt;p&gt; 标记内的内容,因此 {|FeatureFour|}只是一段内容

<p
style="margin: 0px; text-align: left; color: #666666; line-height: 25px; 
font-family: Tahoma, Verdana, Geneva, sans-serif; font-size: 14px; font-weight: bold;">
&bull; {|FeatureFour|}</p>

<p
style="margin: 0px; text-align: left; color: #666666; line-height: 25px; 
font-family: Tahoma, Verdana, Geneva, sans-serif; font-size: 14px; font-weight: bold;">
&bull; {|FeatureFour|}</p>

<p
style="margin: 0px; text-align: left; color: #666666; line-height: 25px; 
font-family: Tahoma, Verdana, Geneva, sans-serif; font-size: 14px; font-weight: bold;">
&bull; Hello world!</p>

。您可以在文本编辑器中更改这些内容。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-07-18
    • 1970-01-01
    • 2019-11-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-06-21
    • 2019-01-26
    相关资源
    最近更新 更多