小编And*_*eld的帖子

悬停时在链接中显示bootstrap glyphicon

当我在盘旋时,我正试图在我的链接的严谨侧显示一个bootstrap glyphicon.

我尝试过使用CSS和JS,但它不会工作.所以我需要帮助:)

这就是我想要做的事情:当我吸引Foo时,我想要铅笔图标显示.等等.当我胡说'Bar'和'这是一个链接'时也会发生同样的事情

我也希望它成为一个按钮.

这就是html的样子:

<div class="nesting">
  <a href="#" class="nesting-item"><span class="glyphicon glyphicon-folder-open" area-hidden="true"></span> Foo <div class="pull-right"><span class="glyphicon glyphicon-pencil" area-hidden="true"></div></a>
  <div class="nesting_child">
    <a href="#" class="nesting-item"><span class="glyphicon glyphicon-chevron-right" area-hidden="true"></span> Bar</a>
    <a href="#" class="nesting-item"><span class="glyphicon glyphicon-globe" area-hidden="true"></span> This is a link</a>
Run Code Online (Sandbox Code Playgroud)

谢谢您的帮助 :)

javascript jquery html5 css3

6
推荐指数
1
解决办法
4377
查看次数

标签 统计

css3 ×1

html5 ×1

javascript ×1

jquery ×1