I am using html-5 slider
<input type="range" .. />
I want to slider's min
and max
values on its left and right side respectively . How can i do this?
Try
<input type="range" min="20" max="80" />
Also the following attributes can be applied to input type="range"
If you want to display min
and max
values on its left and right, just print there:
10 <input type="range" min="10" max="20" /> 20
You could use css too, though its not widely supported.
input[type="range"]:before {
content: attr(min) " ";
}
input[type="range"]:after {
content: " " attr(max);
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.