首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >css工具提示提示--top不起作用

css工具提示提示--top不起作用
EN

Stack Overflow用户
提问于 2015-08-15 18:34:24
回答 1查看 375关注 0票数 1

我正在使用这个css-提示库和一些引导左右手图标。我将css工具提示类声明为底部,并且它正在工作。但是,如果我将工具提示声明为class="hint-topclass="hint-topclass="hint-right,则不起作用。默认情况下,它显示的是所有文件的底部。不确定可能是什么问题。这是我的密码。

代码语言:javascript
运行
复制
<div class="pre-btn" class="hint--top  hint--error" data-hint="Previous Page!">
  <a href="/jquery/jquery-basics" class="glyphicon glyphicon-hand-left "></a>
</div>
<div class="nxt-btn" class="hint--top" data-hint="Next page">
<a href="/jquery/jquery-selectors"  class="glyphicon glyphicon-hand-right"></a><br />
</div>

注意:我正在使用css工具提示提示版本Hint.css - v1.3.4 - 2015-02-28

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-08-15 21:10:59

您已经声明了两个单独的类,您需要将它们组合起来:

这>

代码语言:javascript
运行
复制
class="pre-btn" class="hint--top  hint--error"

应该是这个>

代码语言:javascript
运行
复制
class="hint--top  hint--error pre-btn"

代码语言:javascript
运行
复制
body,
html {
  margin: 100px;
}
代码语言:javascript
运行
复制
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>

<link href="https://cdn.jsdelivr.net/hint.css/1.3.2/hint.min.css" rel="stylesheet" />
<div class="hint--top  hint--error pre-btn" data-hint="Previous Page!">
  <a href="/jquery/jquery-basics" class="glyphicon glyphicon-hand-left "></a>

</div>
<p>These are tooltips.</p>
<div class="hint--bottom nxt-btn" data-hint="Next page">
  <a href="/jquery/jquery-selectors" class="glyphicon glyphicon-hand-right"></a>

  
</div>

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32027992

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档