donglu7998 2012-08-25 02:54
浏览 26
已采纳

悬停对标题中的社交图标的影响?

I want to have a semi trasparent hover effect on my social icons but cant figure it out. Here is my header.php:

<div align = "right"><a href="https://twitter.com/#!/ideviceguys"><img src="/wp-includes/images/twitter.png"/></a>
<a href="http://www.facebook.com/ideviceguys"><img src="/wp-includes/images/facebook.png"/></a>
<a href="mailto:info@ideviceguys.com"><img src="/wp-includes/images/mail.png"/></a>

I see alot off people saying to edit css but i cant find this in my css

here is my website http://ideviceguys.com

  • 写回答

2条回答 默认 最新

  • dos3018 2012-08-25 03:06
    关注

    You need a hook for your css code. Give your div an id or class. Try adding class="socialIcons to your main div.

    <div class="socialIcons">
        <a href="https://twitter.com/#!/ideviceguys"><img src="/wp-includes/images/twitter.png"/></a>
        <a href="http://www.facebook.com/ideviceguys"><img src="/wp-includes/images/facebook.png"/></a>
        <a href="mailto:info@ideviceguys.com"><img src="/wp-includes/images/mail.png"/></a>
    </div>
    

    Then add this little nugget to your css.

    .socialIcons a:hover {
    opacity:0.7; filter:alpha(opacity=40); /* Damn MS and IE8 and earlier */
    }
    

    That should give your icons 30% transparency. Consider what the others say around here. They are much smarter than I am.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题