我在 Windows 7 中编写了一个侧边栏小工具,并添加了 ag:textObject,然后通过 variable.value 更改值。
但在 Windows Vista 中运行时,文本似乎会奇怪地压缩自身。
这段代码有什么问题吗?
var clock = document.getElementById("background").addTextObject("Time", "Nyala", 18, "white", 110, 500);
//This correctly displays the word 'Time' in the proper font.
clock.value = clock.value+"s";
//This causes the text to become "Times" but shrink.
//appending more sporadically causes the textObject to shrink as well.
使用 .value 是错误的方法吗?