1

我正在使用 XUL,下面是基本的滑块/比例实现:

<scale value="1" min="1" max="10" increment="1"/>

但是我想要一个数字框旁边显示滑块中选择的值,也许我在 XUL 教程中看起来不够努力,但我找不到可行的答案。

4

1 回答 1

3
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window id="yourwindow"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  <scale value="1" min="1" max="10" increment="1" id="a"/>
  <textbox readonly="true" observes="a"/>
</window>
于 2009-07-20T00:54:04.060 回答