提问人:Mr. MAX 提问时间:2/17/2020 最后编辑:Mr. MAX 更新时间:1/28/2021 访问量:80
无法在XUL对话框中生成多行文本框 (Thunderbird 68.5.0)
Can not generate a multiline textbox on XUL dialog (Thunderbird 68.5.0)
问:
在我的写作 Thunderbird 插件中,我无法理解文本框不会与我的意图相反地生成为多行。
你能告诉我原因或指出错误的代码吗? 或者您能告诉我使用一些带有 TB 版本 68 或更高版本的多行文本框元素的对话框的任何好插件吗?
示例代码如下:
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
<dialog id="sample" title="multiline textbox"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<textbox multiline="true" rows="3"
value="This is some text that could wrap onto multiple lines."/>
</dialog>
// Launcher
window.open( // or window.openDialog
"chrome://myaddon/content/sample.xul",
"sampleDlg",
"resizable,chrome,modal,titlebar,centerscreen");
先谢谢你。
答:
0赞
gloeng
1/28/2021
#1
<textbox multiline="true">
被删除。请改用。<html:textarea>
参考资料: https://developer.thunderbird.net/add-ons/updating/tb68/changes
评论