Razor TM符号呈现为&;贸易;剑道窗口中的标题
我有一个非常基本的剑道窗口,我需要在标题中包含TM符号。出于某种原因,它呈现为™ 我还没能在网上找到任何与这种情况有关的东西 这是我的代码,我遇到问题的标题在底部:Razor TM符号呈现为&;贸易;剑道窗口中的标题,razor,kendo-ui,unicode-string,Razor,Kendo Ui,Unicode String,我有一个非常基本的剑道窗口,我需要在标题中包含TM符号。出于某种原因,它呈现为™ 我还没能在网上找到任何与这种情况有关的东西 这是我的代码,我遇到问题的标题在底部: @(Html.Kendo().Window().Name("SmartHomeTerminationModal") .Actions(a => a.Minimize().Close()) .Animation(false) .Content( @<text> <div class="c
@(Html.Kendo().Window().Name("SmartHomeTerminationModal")
.Actions(a => a.Minimize().Close())
.Animation(false)
.Content(
@<text>
<div class="container-fluid midco-k-window-content">
<div class="row">
<div class="col-xs-12">
@if (Model != null)
{
<table class="table table-bordered table-condensed table-striped">
<tr>
<th>Install Date</th>
<th>Months in Contract</th>
<th>Months Remaining</th>
<th>Equipment Fee</th>
<th style="width: 20px;"></th>
<th>Total</th>
</tr>
<tr>
<td>@Model.InstallDate.ToShortDateString()</td>
<td>@Model.MonthsInContract</td>
<td>@Model.MonthsRemaining</td>
<td>@Model.EquipmentFee.ToString("C")</td>
<td>=</td>
<td><strong>@Model.EquipmentFee.ToString("C")</strong></td>
</tr>
</table>
}
else
{
@Html.ErrorMessage("We were unable to retrieve SmartHOME termination fee information.")
}
</div>
</div>
</div>
</text>)
.Draggable()
.Title("SmartHOME™")
.Visible(false)
.Width(800))
@(Html.Kendo().Window().Name(“SmartHomeTerminationModal”)
.Actions(a=>a.Minimize().Close())
.动画(错误)
.内容(
@
@如果(型号!=null)
{
安装日期
合同月份
剩余月份
设备费
全部的
@Model.InstallDate.ToShortDateString()文件
@模型月合同
@剩余月数
@型号设备费ToString(“C”)
=
@Model.EquipmentFee.ToString(“C”)
}
其他的
{
@ErrorMessage(“我们无法检索SmartHOME终止费信息。”)
}
)
.Draggable()
.标题(“SmartHOME&trade;”)
.可见(假)
.宽度(800))
您可以使用alt代码将TM符号添加到标题字符串中。为此,按住Alt键并在标题字符串中键入代码(0153表示TM)
.Title("SmartHOME™")
这可以通过将事件绑定到窗口的打开来实现,如下所示:
.Events(eve => eve.Open("onOpen"))
然后给它附加一个简单的函数
function onOpen(e) {
var title = $("span.k-window-title");
title.html('™ hello');
}
这只是针对窗口标题,然后你应用任何文本,你想在那里,所以如果你想要一个图标或其他东西,那么你可以在这里应用它