开发者

Can I render this kind of drop down using CSS? [closed]

开发者 https://www.devze.com 2022-12-13 21:47 出处:网络
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post.
Closed. This question needs details or clarity. It is not currently accepting answers.

Want to improve this question? Add details and clarify the problem by editing this post.

Closed 4 years ago.

Improve this question

I want to buid a web page. The page co开发者_JAVA技巧ntains a drop down which should look like this:

alt text http://img694.imageshack.us/img694/9350/dropdown.png

Is it possible using CSS or I would need to use a image with some javascipt?


You won't be able to style a select box like this. You have to make a custom one using JavaScript.


You can make using this jquery plugin

http://www.dfc-e.com/metiers/multimedia/opensource/jqtransform/


Yes it's possible without Javascript as long as the dropdown is to open automatically when you move the mouse over the button. "Son of suckerfish" is a popular drop-down menu implementation with only minimal added Javascript for older browsers, I have never used it for a standalone button but it should be easy to achieve.

A click-sensitive dropdown can't, to my knowledge, be done using pure CSS.

Edit: on second reading, I'm not sure what exactly you mean. Are you talking about the hand-drawn look of the button, or the behaviour of a dropdown button?


You would need to use a combination of CSS and javascript to create a custom select box. Unfortunately, elements aren't very stylable in most browsers.

EDIT

An example: http://lab.aspektas.com/select/select.html

0

精彩评论

暂无评论...
验证码 换一张
取 消