【发布时间】:2019-01-29 09:36:35
【问题描述】:
我想创建一个与 website 相同的顶部面板滑块,当我查看该网站源时,我看到了所有内容,因为我复制了有助于创建它的特定代码,但我有两个问题。
屏幕截图
当我点击该选项时,我无法使我的代码可滑动。
我无法从此image 中裁剪该幻灯片菜单图像按钮。
您好,请帮帮我,我真的遇到了麻烦,如何从这个image 制作可滑动或裁剪菜单图像。
要查看原始网站的源代码在这里,网站是here。
我的代码是:
#netbanking_branches {
margin: 0 0px 0 10px;
}
.netbanking_button {
background-position: -58px -643px;
height: 35px;
width: 200px;
}
#netbanking_branches,
.netbanking_button {
float: left;
}
.netbanking_button,
.netbanking_button_up {
background-image: url("https://corp.onlinesbi.com/personal/images/sprite_a.png") ! important;
background-repeat: no-repeat;
}
#netbanking_popup {
border-bottom: 5px solid #cbcbcb;
z-index: 1000;
left: 0px;
top: 0px;
background: #d9d9d9 url("https://corp.onlinesbi.com/personal/images/netbanking_repeat.png" repeat-x;
width: 100%;
}
#netbanking_content {
background: url("https://corp.onlinesbi.com/personal/images/netbanking_img.png") no-repeat left top;
height: 123px;
padding: 10px 0 0 255px;
color: #6f6f6f;
line-height: 20px;
}
#netbanking_content_heading {
color: #0197c0;
font-size: 15px;
font-weight: bold;
margin: 5px 0;
}
#netbanking_popup,
.product_content {
display: none;
}
#netbanking_popup {
position: absolute;
}
#netbanking_content_heading {
font-size: 13px;
}
<!-- Header core info -->
<div id="netbanking_branches" class="netbanking_branches">
<a href="" class="netbanking_button" title="Netbanking Branches" tabindex="4"> </a>
<div id="netbanking_popup">
<div id="netbanking_content">
<div id="netbanking_content_heading">
<p>contant</p>
</div>
</div>
</div>
<!-- Header core info Ends-->
【问题讨论】: