如何用CSS创建+按钮? [英] How to create the + button with CSS?

查看:88
本文介绍了如何用CSS创建+按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您在Google中输入google时,您会看到有一个+按钮

When you input "google" into Google, you will see there is a + button


显示GOOG的股票报价

Show stock quote for GOOG

使用firebug,您可以看到< div class =csb mbi> ,该课程的内容是什么

With firebug, you can see <div class="csb mbi">, what is the content of the class


csb mbi

csb mbi

我想创建这样一个按钮,点击它后,它将变成一个 - 按钮。如何做到这一点?

I want to create such a button,and after clicking it, it will become a - button. How to do it?

推荐答案

以下是+/-按钮的示例,没有图片。所有文字和CSS。

Here's an example with a +/- button, no images. All text and CSS.

http://jsbin.com/ikeca

alt text http://i47.tinypic .com / mcvjg9.jpg

这篇关于如何用CSS创建+按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆