小编fjw*_*fjw的帖子

悬停时如何显示文字?

我的页脚中有用于社交媒体的不同图标。现在,我想创建一个悬停效果,该效果显示悬停图标的名称。

例如:我的鼠标在Facebook图标上方,然后文本“ Facebook”应该出现在下面的div中的div中!

我知道如何创建此名称,但是,我不知道如何在完全相同的位置的同一div中显示这些名称。我怎样才能做到这一点?

<div id="footer1" style="position: fixed; bottom: 0;">
    <div class="content-wrapper">
      <div class="ft-div-left"> </div>
      <div class="ft-div-right">
        <p></p>
      </div>
      <div class="ft-div-middle">
        <center>
          <p>
            <center>
              <a href="" style="text-decoration:none; color:white;"><span class="" style="color: white;"></span></a> 
              <a href=""  style="text-decoration:none; color:white;"><span class="" style="color: white;"></span></a> 
              <a href="" style="text-decoration:none; color:white;"><span class="icon-stumbleupon3" id="issuu" style="color: white;"></span></a> 
              <a href="" style="text-decoration:none; color:white;"><span class ="icon-twitter3"></span></a>
              </br>
              <br>
              <br>
              <span style="font-family:'Open Sans',sans-serif; font-size:11px; color:grey;">&copy; 2014. All Rights Reserved.</span>
            </center>
          </p>
        </center>
      </div>
      <div id="hoverText">
         <span>Here goes the text</span>
      </div>
    </div>
  </div>
Run Code Online (Sandbox Code Playgroud)

html css mouseover hover

3
推荐指数
2
解决办法
6429
查看次数

标签 统计

css ×1

hover ×1

html ×1

mouseover ×1