我连续做了3列。我试图得到一个效果,即箭头显示为光标悬停在其中一列或其中一个被点击时。有没有内置类的HTML或CSS来做到这一点? the link to my code: https://codepen.io/BeauBo/pen/gxmpLK?editors=1111
提前致谢!在底部做一个箭头
Q
在底部做一个箭头
-2
A
回答
1
这里没有内置类。只需将您想要的光标添加到该列的ID即可。
#online {
cursor: e-resize;
}
尝试其中之一: E-调整 S-调整 W-调整 NE-调整 NW-调整 SE-调整 SW-调整
https://www.w3schools.com/cssref/playit.asp?filename=playcss_cursor&preval=e-resize
我叉你的CodePen:https://codepen.io/solona/pen/OjpdbE?editors=1111
0
我编辑你的针是不完全确定你想要什么,但这是我想出的。
.arrow-bar:hover:after{
content: '';
position: absolute;
left: 42%;
top: 100%;
width: 0;
height: 0;
border-left: 20px solid transparent;
border-right: 20px solid transparent;
border-top: 20px solid salmon;
clear: both;
}
0
实施例与fontawesome经由伪代码施加字形。
$(document).ready(function(){
/* var url = "https://wind-bow.glitch.me/twitch-api/channels/ESL_SC2?callback=?";
$.getJSON(url,function(data){
console.log(data);
});
});*/
/*Keep .outline in the center of window*/
function mov_outline(){
var wid_height = $(window).height();
var wid_width = $(window).width();
var outline_height = $('.outline').height();
var outline_width = $('.outline').width();
$(".outline").css('top',wid_height/2-outline_height/2).css('left',wid_width/2-outline_width/2);
}
mov_outline();
$(window).resize(function(){
mov_outline();
});
});
/**************/
body{
background: pink;
}
.outline{
position: absolute;
width: 20%;
background:none;
}
.display{
width: 100%;
height: 50px;
background: salmon;
color: white;
}
#all,#online{
border-right: 1px solid white;
height: 100%;
display: flex;
align-items:center;
justify-content: center;
}
#offline{
height: 100%;
display: flex;
align-items:center;
justify-content: center;
}
#all:hover:after, #online:hover:after, #offline:hover:after {
content: "\f13a";
font-family: FontAwesome;
font-size: 2em;
position: absolute;
left: 50%;
transform: translate(-50%, 50%);
bottom: 0;
color: blue;
}
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<div class="container-fluid">
<div class="outline">
<div class="row display">
<div class="col-xs-4 " id="all">All</div>
<div class="col-xs-4 "id="online">Online</div>
<div class="col-xs-4 "id="offline">Offline</div>
</div>
</div>
</div>
相关问题
- 1. 如何在头部底部向上指箭头?
- 2. div底部全宽响应箭头
- 3. 底图上箭头箭头没有显示在地图上
- 4. 摆脱Iphone屏幕顶部和底部的下拉箭头
- 5. 使一个小箭头CSS
- 6. 角向材质md卡边框底部向下箭头
- 7. HTML/CSS使用箭头创建div底部
- 8. Python底图:带箭头端盖的drawgreatcircle
- 9. Android - 如何正确绘制一个带箭头的箭头?
- 10. 在opengl中绘制一个箭头ES
- 11. 在Pygame中绘制一个箭头
- 12. 在面前添加一个箭头
- 13. jcarousel的外部箭头?
- 14. 修复头部在跳跃时,底部的底部
- 15. JavaFX线/箭头箭头
- 16. 在悬停#leaderboard上,向#左箭头和#右箭头添加一个类
- 17. 在工具栏底部边缘显示的工具栏向上箭头图标
- 18. 使用箭头动画一个e.Graphics.DrawLine
- 19. UINavigationItem:创建一个 “nextBarButtonItem”(= rightBarButtonItem箭头)
- 20. 我可以在两个箭头之间放置一个Rails部分吗?
- 21. 箭头
- 22. 在C中的一个Picturebox上绘制一个箭头#
- 23. 在一个箭头内调用一个IO Monad
- 24. 下载箭头帮助 - 下载一个文件,并有一个箭头点它在哪里
- 25. 如何做Modal Bootstrap出现在底部
- 26. HTML/CSS - 将一个小三角形或箭头添加到我的导航中活动选项卡的底部
- 27. 多箭头切换箭头切换
- 28. CSS盒除箭头外有箭头
- 29. Sharepoint 2010下一页箭头
- 30. 检测箭头键 - 一次
你应该你的问题中发布您的代码,使未来的人们将能够从这个问题学习。 – zfrisch
你已经试过了吗? – qiAlex