[英]how to make little arrowbutton on a <hr> (for slideUp/slideDown with JQuery)
quick question, 快速提问
I have a <hr>
and this script: 我有一个<hr>
和以下脚本:
<script type="text/javascript" >
$(function () {
$("#hideClass").click(function () {
if ($("div#bodyFake").is(":hidden")) {
$("div#bodyFake").slideDown();
} else {
$("div#bodyFake").slideUp();
}
});
});
</script>
atm the script is meant to hide the entire body (this was just to test if it worked because I had some JQuery problems) atm该脚本旨在隐藏整个正文(这只是为了测试它是否起作用,因为我遇到了一些JQuery问题)
however, I would now like to have a little arrow/button on the right side of <hr>
so I can hide the div (the 1 table) underneath it. 但是,我现在想在<hr>
的右侧有一个小箭头/按钮,以便可以将div(1表)隐藏在其下方。 Does anybody know how I can get the little arrowbutton on there? 有人知道我怎么能在上面得到小箭头按钮吗? (don't know what it's called..) (不知道它叫什么..)
Thanks in advance! 提前致谢!
Give it a height and a background image. 给它一个高度和一个背景图像。
hr {
background-image:url(....);
background-position:right top;
background-repeat:no-repeat;
height:20px;
}
我现在意识到我也可以只使用ASCII箭头alt + 31▼和alt + 30▲
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.