滑动选项卡定位CSS
Sliding Tab Positioning CSS
我需要帮助来定位Sliding TAB。它确实有效,在我的浏览器上看起来很好。。。但在其他分辨率不同的计算机上查看时。它与另一个选项卡重叠。
这是网站。。链接
这是我的代码。。
CSS**
.slide {
position: fixed;
overflow: hidden;
width: 300px;
margin: 1em 0;
height: 100%;
float: left;
top: 230px;
left: 0px;
z-index: 999999;
}
.slide .inner {
position: absolute;
left: -270px;
top: 0;
width: 300px;
color: #333;
z-index: 999999;
}
.scontent {
float: left;
width: 251px;
background: #fff;
height: 200px;
padding: 10px;
z-index: 999999;
-webkit-border-bottom-right-radius: 10px;
-moz-border-radius-bottomright: 10px;
border-bottom-right-radius: 10px;
border: 1px solid #bbb;
border-right: none;
}
.mybutton {
display: block;
cursor: pointer;
float: left;
width: 25px;
height: 147px;
background: url(images/remotesupporttab.jpg) no-repeat #fff;
;
z-index: 999999;
-webkit-border-top-right-radius: 7px;
-webkit-border-bottom-right-radius: 7px;
-moz-border-radius-topright: 7px;
-moz-border-radius-bottomright: 7px;
border-top-right-radius: 7px;
border-bottom-right-radius: 7px;
border: 1px solid #bbb;
border-left: none;
}
JS**
<script type="text/javascript">
$(document).ready(function() {
$('#slideleft .mybutton').click(function() {
var $lefty = $(this).parent();
$lefty.animate({
left: parseInt($lefty.css('left'),10) == 0 ?
-$lefty.outerWidth() + 31 :
0
});
});
});
</script>
看起来,您的"customer_tab"以百分比定位,而另一个选项卡以固定像素(顶部:230px;)
相关文章:
- CSS-如何定位内容数据标题
- 如何在CSS或Javascript中定位选定的属性(在HTML选项中)
- css定位困难
- jQuery在使用css定位的元素上调整大小;无法在chrome中正确调整大小
- 在CSS中重叠相对定位的图像
- CSS 画布和导航栏定位
- 将 CSS 定位从百分比转换为像素
- 使用边距在CSS中定位
- CSS z-index不起作用(使用相对定位,使用顶部和左侧)
- Nodejs和express无法定位资源文件(CSS&JS文件)
- CSS定位-制作一个小框架
- JS中的Css定位
- CSS定位表和块
- 如何定位锚点“悬停”事件,就像在 jQuery 中的 css a:hover 一样
- 这有什么好处吗?使用 Javascript 检测和定位特定的浏览器 CSS
- 无法将谷歌+1按钮与CSS定位
- 定位 CSS 类的特定实例
- 根据浮动元素的高度定位 CSS 元素
- 定位CSS悬停菜单的正确方法是什么
- 滑动选项卡定位CSS