其他分享
首页 > 其他分享> > 滑块和搜索框

滑块和搜索框

作者:互联网

滑块和搜索框

1. 滑块 input type="range"

<!--验证功能框
4.滑块 range
例如用滑块调整音量,要设置step和min max
-->

<p>音量滑块 :
    <input type="range" name="voice" min="0" max="100" step="0.5"/>
</p>

一定要设置min和max:滑块拖动范围

设置step:每次拖动多少


2. 搜索框 input type="search"

<!--验证功能框
5.搜索框 search
-->
    
<p>搜索框 :
    <input type="search" name="search"/>
</p>

标签:滑块,拖动,搜索,设置,input,type
来源: https://www.cnblogs.com/xypersonal/p/16178270.html