我正在 asp.net mvc 中使用 kendo.ui.Chat api,我想在中呈现文本功能renderMessage 方法作为HTML,目前尚未呈现。
输入:
$(document).ready(function(){
$('p').hide();
$("button").on('click',function(){
var clicked = $(this).attr('id').match(/\d+/);
$("#p"+clicked[0]).show();
var nextbtn = parseInt(clicked[0])+1;
$("#button"+nextbtn).show();
});
});
输出:
chat.renderMessage(
{
type: "text",
text: "<h1> Hello </h1>",
},
userInfo
);
但是我需要输出为:你好
答案 0 :(得分:0)
如果您想在邮件上添加样式
.k-bubble{
...insert your style here
}
如果您想在消息时间添加样式
.k-message-time{
...insert your style here
}
如果要在发件人/作者上添加样式
.k-author{
...insert your style here
}