天猫右边的固定栏css
来源:互联网 发布:行业专用软件 编辑:程序博客网 时间:2024/04/27 14:59
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>固定定位</title>
<style>
*{margin:0px;padding:0px;}
body{font-size:12px;}
ul li{list-style:none;}
.r-fixed{
height:100%;width:6px;
background:#666;
position:fixed;right:0px;
}
.logo{
right:6px;
width:30px;
top:35%;
position:absolute;
}
.logo ul li{
width:36px;height:35px;
line-height:35px;background:#666;
margin-bottom:1px;
border-radius:10% 0% 0% 10%;
position:relative;
background-image:url(pic/toolbars.png);
background-repeat:no-repeat;
}
.r-fixed .logo ul li:hover{
background-color:#F00;
}
.logo ul li p{
position:absolute;
width:0px;
height:35px;
line-height:35px;
text-align:center;
color:#FFF;
background:#F00;
right:34px;
top:0px;
display:block;
border-radius:10% 0% 0% 10%;
overflow:hidden;
transition:all 0.5s 0.2s;
}
.logo ul li:hover p{
width:80px;
}
.r-fixed .logo ul li:nth-child(1){
background-position:-90px -175px;
}
.r-fixed .logo ul li:nth-child(2){
background-position:-50px -2px;
}
.r-fixed .logo ul li:nth-child(3){
background-position:-50px -50px;
}
.r-fixed .logo ul li:nth-child(4){
background-position:-50px -100px;
}
.r-fixed .logo ul li:nth-child(5){
background-position:-190px -152px;
}
.r-fixed .logo ul li:nth-child(6){
background-position:-50px -150px;
}
</style>
</head>
<body>
<div class="r-fixed">
<div class="logo">
<ul>
<li><p>京东会员</p></li>
<li><p>京东会员</p></li>
<li><p>京东会员</p></li>
<li><p>京东会员</p></li>
<li><p>京东会员</p></li>
<li><p>京东会员</p></li>
</ul>
</div>
</div>
<body>
</html>
<html>
<head>
<meta charset="utf-8">
<title>固定定位</title>
<style>
*{margin:0px;padding:0px;}
body{font-size:12px;}
ul li{list-style:none;}
.r-fixed{
height:100%;width:6px;
background:#666;
position:fixed;right:0px;
}
.logo{
right:6px;
width:30px;
top:35%;
position:absolute;
}
.logo ul li{
width:36px;height:35px;
line-height:35px;background:#666;
margin-bottom:1px;
border-radius:10% 0% 0% 10%;
position:relative;
background-image:url(pic/toolbars.png);
background-repeat:no-repeat;
}
.r-fixed .logo ul li:hover{
background-color:#F00;
}
.logo ul li p{
position:absolute;
width:0px;
height:35px;
line-height:35px;
text-align:center;
color:#FFF;
background:#F00;
right:34px;
top:0px;
display:block;
border-radius:10% 0% 0% 10%;
overflow:hidden;
transition:all 0.5s 0.2s;
}
.logo ul li:hover p{
width:80px;
}
.r-fixed .logo ul li:nth-child(1){
background-position:-90px -175px;
}
.r-fixed .logo ul li:nth-child(2){
background-position:-50px -2px;
}
.r-fixed .logo ul li:nth-child(3){
background-position:-50px -50px;
}
.r-fixed .logo ul li:nth-child(4){
background-position:-50px -100px;
}
.r-fixed .logo ul li:nth-child(5){
background-position:-190px -152px;
}
.r-fixed .logo ul li:nth-child(6){
background-position:-50px -150px;
}
</style>
</head>
<body>
<div class="r-fixed">
<div class="logo">
<ul>
<li><p>京东会员</p></li>
<li><p>京东会员</p></li>
<li><p>京东会员</p></li>
<li><p>京东会员</p></li>
<li><p>京东会员</p></li>
<li><p>京东会员</p></li>
</ul>
</div>
</div>
<body>
</html>
0 0
- 天猫右边的固定栏css
- css左边固定,右边自适应
- css 左右两栏 左边固定右边自适应
- CSS控制左边固定,右边自由伸展
- CSS右边固定左边自适应布局
- CSS—左边固定,右边自适应
- CSS中实现左边固定,右边自适应
- css 实现左侧固定 右边自适应
- css 左边固定宽度,右边自动填充的布局,不用flex
- css实现左边div固定宽度,右边div自适应撑满剩下的宽度
- 通过 CSS 实现一个左边固定宽度、右边自适应的两列布局
- css实现左边div固定宽度,右边div自适应撑满剩下的宽度
- 两栏自适应布局,左边固定和右边固定的区别
- CSS利用负margin左边固定右边自适应布局
- css二列布局(左边固定,右边自适应)
- css 布局小技巧 左边固定右边自适应
- 两栏,左边固定,右边自适应
- 双栏布局 左边固定右边自适应
- MD5加密算法
- 羊皮卷之八:今天我要加倍重视自己的价值
- 解决css中z-index无效问题
- 类和对象的区别
- 从TabLayout#setTabMode开始谈绘制(Measure)流程
- 天猫右边的固定栏css
- PHP和MySQL Web开发 读书笔记
- 如何搜索NITF(win)下的文件,linux,ubuntu
- Java 通过JDBC连接Mysql数据库的方法和实例
- spring mvc整合shiro登录 权限验证
- 定义LIstView下拉加载数据
- 接口
- Android中Activity运行时屏幕方向与显示方式详解
- 谷歌开放公共WiFi,覆盖面和安全性成两个重要的突围方向