How to change the size and other properties of the chat window

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-21 18:58:02

问题


I have created a simple bot application using the botframework. I am embedding the chat window in an iframe. How can I control the chat window size and other properties like color, font etc.


回答1:


You can size the iframe but your options of modifying what's in it are limited - CSS override body style for content in iframe?.

Here's how I typically integrate the provided Bot Framework's iframe with size control:

<div id="bot">
    <iframe src="https://webchat.botframework.com/embed/..." 
            style="height: 600px; width: 500px; resize: both;">
    </iframe>
</div>

If you want to have more control over how the web chat renders, you might want to look at other more advanced options of integrating their web chat. Read more on their github page: https://github.com/Microsoft/BotFramework-WebChat



来源:https://stackoverflow.com/questions/43412200/how-to-change-the-size-and-other-properties-of-the-chat-window

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!