先写一个 select ,再将input使用定位将其放置在 select 上,给 select 添加 onchange 事件,select 的值一旦发生变化,就把 select 的值赋给 input 。 粗略的效果图 HTML CSS JQuery