我有一个直接取自 FuelUX 文档的 FuelUX 微调器:
<!DOCTYPE html lang="en">
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="http://fuelcdn.com/fuelux/2.3/css/fuelux.min.css" rel="stylesheet" />
<link href="http://fuelcdn.com/fuelux/2.3/css/fuelux-responsive.min.css" rel="stylesheet" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>
<script src="http://fuelcdn.com/fuelux/2.3/loader.min.js" type="text/javascript"></script>
</head>
<body class="fuelux">
<div id="MySpinner" class="spinner">
<input type="text" class="input-mini spinner-input">
<div class="spinner-buttons btn-group btn-group-vertical">
<button type="button" class="btn spinner-up">
<i class="icon-chevron-up"></i>
</button>
<button type="button" class="btn spinner-down">
<i class="icon-chevron-down"></i>
</button>
</div>
</div>
</body>
</html>
但是,当微调器以 chrome 呈现时,微调按钮与输入元素分离。旋转按钮可以正常增加和减少输入字段中的整数。除了加载javascript之外,我还需要做些什么来让旋转按钮附加到输入字段?