问题描述
- bootstrap里怎么将鼠标悬浮时显示不同内容呢?平时用都是点击切换,悬浮怎么实现啊?
- bootstrap里怎么将鼠标悬浮时显示不同内容呢?平时用都是点击切换,悬浮怎么实现啊????
解决方案
鼠标悬浮切换效果可以用CSS3来实现,不局限于Bootstrap框架,所有的html都可以。
这是随便找的一个在线演示,你打开看看对应的css就行了,就一个css类的事情。
http://m.baidu.com/from=1012852y/bd_page_type=1/ssid=0/uid=0/pu=usm%400%2Csz%401320_2004%2Cta%40iphone_1_5.1_11_2.1/baiduid=09D5B350AD26B59454A5F48FAFAC6002/w=0_10_CSS3%E5%AE%9E%E7%8E%B0%E9%BC%A0%E6%A0%87%E5%88%87%E6%8D%A2/t=iphone/l=3/tc?m=8&ntc=1&srd=1&dict=32&nt=wnor&title=CSS3%25u5B9E%25u73B0%25u9F20%25u6807%25u6ED1%25u8FC7%25u5207%25u6362%25u52A8%25u753B%25u7279%25u6548_%25u5927%25u5934%25u7F51&tch=124.253.262.425.2.410&eqid=dd649fb00a6ed8001000000557452207&wd=&clk_info=%257B%2522srcid%2522%253A%2522www_normal%2522%252C%2522tplname%2522%253A%2522www_normal%2522%252C%2522t%2522%253A1464148495907%252C%2522xpath%2522%253A%2522div-a-h3%2522%257D&tcid=iomc7lxr&src=http%3A%2F%2Fwww.datouwang.com%2Fuploads%2Fdemo%2Fjiaoben%2F2014%2Fjiaoben373%2F