我将WebChat嵌入到演示页面中并复制了CSS文件,但是我不知道是否要更改网聊的标题吗?
<link href="BotStyle.css" rel="stylesheet" />
<div id="BotChatGoesHere"></div>
<script src="https://cdn.botframework.com/botframework-webchat/latest/botchat.js"></script>
<!-- If you do not want to use Cognitive Services library, comment out the following line -->
<script src="https://cdn.botframework.com/botframework-webchat/latest/CognitiveServices.js"></script>
答案 0 :(得分:2)
您可以使用javascript或jquery以编程方式更改文本。要么
document.getElementsByClassName("wc-header")[0].innerHTML = "<span>Chat</span>";
或
$(".wc-header span").innerText = "Hello";