- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我只是想将 div 颜色从浅蓝色更改为黑色。不幸的是我不能让它改变颜色或任何东西。我尝试了各种代码,但似乎都不起作用。这是我的代码。
**HTML**
<a href="#">
<div id="entertainment">
<h1 style="font-size:25px;"> Entertainment </h1>
</div>
</a>
这是我的 CSS
#entertainment{
background-color:#6db1e1;
width:160px;
height:70px;
margin-top:5px;
margin-left:334px;
position:absolute;
}
a,entertainment{
color:black;
text-decoration: none;
}
a.entertainment:悬停{
margin-radius:20px;
background-color:green;
最佳答案
您的 a.entertainment:hover
不适用于您的 html 设置。您在该行中所说的是“我想定位一个具有类别且悬停的标签”
为了使代码与您的 html 结构一起工作,您必须从 css 选择器中删除 a 标签:
#entertainment:hover {
/* hover style here */
}
#entertainment{
background-color:#6db1e1;
width:160px;
height:70px;
margin-top:5px;
margin-left:334px;
position:absolute;
}
a,entertainment{
color:black;
text-decoration: none;
}
#entertainment:hover{
border-radius:20px;
background-color:green;
}
<a href="#">
<div id="entertainment">
<h1 style="font-size:25px;"> Entertainment </h1>
</div>
</a>
关于html - 我根本无法在悬停时更改我的 div,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47583992/
我遇到了一个似乎很独特的问题。我的 NSUbiquitousKeyValueStore 在模拟器中的启动之间根本不起作用。也就是说,我什至不是在谈论 iCloud 同步或类似的东西,我无法让它通过下面
首先,我使用的是 WiX 版本 3.5.2519.0,但我也在最新的 3.6 版本上测试了它,结果相同。 我很难确定 PatchFamily 究竟能过滤掉 torch 生成的差异的某些部分。按照手册中
我可以获取要呈现的“帮助主题”标题,但无法获取我定义的任何FIXTURES。 {{#each model}} 中的任何内容都不会渲染。这是我第一次使用 Ember,所以任何东西(字面意义上的任何东
我一直在尝试设置custom ajaxTransports for jQuery在我们的产品的某些场景下缩短某些工作流程。然而,我在让这些传输受到尊重方面取得了零成功(而我有很多工作 custom a
为什么纯无类型 lambda 演算经常被描述为无法使用? 有了合适的函数库,它会不会与任何其他函数式语言大致相同? 最佳答案 速度不是大问题。例如,您可以决定使用教堂数字但优化实现,以便像往常一样表示
我是一名优秀的程序员,十分优秀!