- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在制作一个向下滚动的箭头,我使用了两个旋转的 div 来制作人字形。出于某种原因,当我将鼠标悬停在其包含的 div 上时,V 形下方会出现一条蓝色的小下划线。
我尝试了 text-decoration: none 用于那些元素和它们的父元素;我真的没想到这会奏效。我不确定是什么原因导致了我的代码。有人有什么想法吗?
Here's a picture of what I'm describing; there's a small blue underline beneath the tip of the arrow
#arrow-div {
position: absolute;
background-color: yellow;
text-decoration: none;
bottom: 10px;
right: 0;
left: 0;
}
#arrow-button {
width: 80px;
height: 80px;
margin: auto;
transition: .3s;
text-decoration: none;
}
#arrow-button:hover {
transition: .5s;
border: 4px dotted black;
border-radius: 60px;
text-decoration: none;
}
.arrow {
height: 30px;
width: 8px;
background-color: black;
border-radius: 2px;
display: inline-block;
margin-top: 25px;
text-decoration: none;
}
#arrow-left {
transform: rotate(-45deg);
margin-right: 2px;
}
#arrow-right {
transform: rotate(45deg);
margin-left: 2px;
}
<div class="container" id="arrow-div">
<a href="#slant-1">
<div class="container" id="arrow-button">
<div class="arrow" id="arrow-left"></div>
<div class="arrow" id="arrow-right"></div>
</div>
</a>
</div>
最佳答案
它来自 <a>
和 <a>
默认 CSS 应用 text-decoration:underline;
请添加下面的代码。
#arrow-div a {
text-decoration: none;
}
关于html - 悬停时 div 下方的小蓝色 "underline"- 这是从哪里来的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55877230/
这是一个复制的例子: div.addu { color: #006e28; text-decoration: underline; } div.addu blockquote pre { text-d
我正在使用 Konvajs我对 Text 有疑问。我想绘制 Text 的 underline。类似于 css 中的 text-decoration: underline 有什么方法可以绘制下划线吗?
我怎样才能做到这一点(或类似的东西)?寻找一些将成为元素宽度的“下划线”。正在考虑一个可绘制对象,但我不太确定它如何与拉伸(stretch)一起工作,什么不是。谢谢。 编辑 制作了一个新的 XML 文
这个问题在这里已经有了答案: How to increase the gap between text and underlining in CSS (18 个答案) 关闭 7 年前。 我需要在文本
为了分隔导航中的链接,我设置了以下内容 #menu-main li a:after{ content: " * "; } 当前元素获得额外 text-decoration: underline
有没有办法控制text-decoration: underline中下划线的位置? Example link 上面的示例默认有下划线...有没有办法将下划线向下移动几个像素,以便文本和下划线之间有更多
我正在使用一个应用程序,需要在 UITabbarItem 中添加下划线。 所以我想在iOS默认UITabbarcontroller中选定的UITabbarItem下添加下划线。 我已经创建了 UITa
如何为文本添加“下划线”以获得与“测试”下相同的效果? 我尝试将 TEST 封装在 span 中,并添加一个绝对的 :after 和 position:absolute,但我认为这不是正确的方法,并且
我在使此布局在 IE 中正常工作时遇到了一些问题。问题是,当我有一些小型大写字母、带下划线的文本时,将垂直对齐设置为中间的图像会打断下划线。小写字母的下划线向下移动。 See the picture.
我在 a 上有 text-decoration: underline,我需要保持这样。但我也试图从伪元素中删除下划线,用 text-decoration: none !important; 覆盖它似乎
我正在使用一段类似于以下内容的 html:- Something 我在导入的文件中有以下 css。 a.somePseudoClass:hover {color: #000000; text-
为什么 ie7 不在鼠标悬停时应用 text-decoration: underline? TEST 最佳答案 IE 7 实现 text-decorati
在我目前正在开发的网站上,我遇到了悬停时链接下划线的问题。虽然在悬停链接上声明了 text-decoration: underline,但它不能正常工作。我自己无法解释。 查看网站本身(它是右下角的链
好吧,有些人会明白我的意思并编辑我的问题,但他们做错了。 更好的解释: 您有一个 contenteditable div与文本 This is a Test String. .如果您现在使用 exec
我想在下划线可以是不同长度的地方加下划线。我还希望能够更改下划线的位置(在单词下方向左或向右移动)。这似乎是一项非常容易的任务,但我无法让它工作。 .underline { border-bott
我使用Eclipse CDT,并且包含了一些文件。不幸的是,我无法将include路径添加到我的eclipse项目中,因为eclipse在开始索引新添加的include时将始终崩溃。因此,我想关闭突出
我有一个类似于 geo_drill_0_10m_therm_15_15 的字符串列表,我需要删除最后两个“取消划线数字”子字符串(_15 和 _15)。 但是,在我的列表中,数字具有不同长度的数字(例
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 要求我们推荐或查找工具、库或最喜欢的场外资源的问题对于 Stack Overflow 来说是偏离主题的,
该模式有两个 anchor ,当兄弟节点有 :before 下划线动画时,其中一个会旋转并变得模糊。您能否建议当前问题的可能解决方案是什么? .sibling { position: relati
我见过它,最近在这里:http://pitchfork.com/news/67863-amazon-launches-new-streaming-service-undercutting-spotif
我是一名优秀的程序员,十分优秀!