我正在使用 XUL,下面是基本的滑块/比例实现:
<scale value="1" min="1" max="10" increment="1"/>
但是我想要一个数字框旁边显示滑块中选择的值,也许我在 XUL 教程中看起来不够努力,但我找不到可行的答案。
<?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>