Botframework-调整聊天机器人的宽度 [英] Botframework - resize bot chat in width

查看:97
本文介绍了Botframework-调整聊天机器人的宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以为聊天框调整聊天的宽度?目前,我正在仿真器上进行测试.基本上,我想使我的漫游器聊天向右扩大.如图所示,尽管我增加了列的大小,添加了更多的列,等等,但聊天宽度仍然保持不变.当前正在使用自适应卡.

Is it possible to resize the width of the chat for botframework ? Currently I'm testing on a emulator. Basically I want make my bot chat wider to the right. As you can see in the picture, the chat width remain the same despite me increasing the size of the columns, add more columns, and so on. Currently using adaptive card.

推荐答案

如果您使用的是iframe嵌入,则可以通过添加以下样式来编辑iframe HTML元素的宽度:

If you are using the iframe embed, you can edit the width of the iframe HTML element by adding the style in-line:

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

或者,如果您希望更好地控制,则可以直接将样式编辑为Web Chat源代码-

Alternatively, if you want greater control you can edit the styling directly to the Web Chat source code -

自定义网络聊天

这篇关于Botframework-调整聊天机器人的宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆