I searched on Google for a long time yesterday. Although it is not very simple to customize the appearance of form elements such as radio buttons, multi-select buttons, text boxes and buttons, you can still get good results. But this SELECT is too difficult to make, and it is impossible to make it according to the effect I want. Even if it is made, there will be browser compatibility issues.
Let’s write a JS plug-in to implement it. Select behaves differently in different browsers, so there is no good solution.
There are many such plug-ins on the Internet, you can try them out.
Use js to simulate a
Let’s write a JS plug-in to implement it. Select behaves differently in different browsers, so there is no good solution.
There are many such plug-ins on the Internet, you can try them out.
Use js to simulate one
The better ones I searched yesterday were all made with JS. I saw something that seemed to be done by putting the value into a hidden input.
But I have already written the HTML, and I have added JS to the SELECT. And I am not very familiar with JS, so I cannot modify the JS code at all. It's a lesson. If you want to be beautiful in the future, you must not use those form tags, at least until HTML5 becomes popular.
Let’s write a JS plug-in to implement it. Select behaves differently in different browsers, so there is no good solution.
There are many such plug-ins on the Internet. You can go look for it and give it a try.
Use js to simulate one
The better ones I searched yesterday were all made with JS. I saw something that seemed to be done by putting the value into a hidden input.
But I have already written the HTML, and I have added JS to the SELECT. And I am not very familiar with JS, so I cannot modify the JS code at all. It's a lesson. If you want to be beautiful in the future, you must not use those form tags, at least until HTML5 becomes popular.
I’m not sure whether form tags in HTML can be customized well. I posted a question:
http://bbs.csdn.net/topics/390449118
My post is for 50 points, and I usually post 20-point posts.