当前位置:网站首页>综合设计一个OPPE主页--页面的售后服务
综合设计一个OPPE主页--页面的售后服务
2022-07-28 16:03:00 【(-^_^-)】
分析样式:
一共六块(整体可以使用列表)
里面的每一小块实际上也是一个列表;

实现效果:
有一个父子样式的跟随 子样式的背景图片的样式跟随父样式一同变化----鼠标触发
实现父子样式一起变化 但是变化的内容不同
#alter_sale .a a:hover{
color: red;
}
#alter_sale .a a:hover .xlwb{
background: url("../img/icons-1.png") no-repeat -140px -880px; /*偏移量量一下*/
}
CSS
/**************************************************
*****************页面的售后服务部分的样式**************
***************************************************/
#alter_sale{
height: 200px;
background-color: #fff;
}
#alter_sale ul{
width: 1100px;
margin: 0px auto;
padding-top: 20px;
}
#alter_sale ul li{
width: 140px;
float: left;
text-align: center;
margin: 0 20px;
}
#alter_sale ol li{
line-height: 30px;
}
#alter_sale ol li:first-child a{
font-weight: bold;
}
#alter_sale .a{
position: relative;
}
/*新浪微博图标的设置*/
#alter_sale .xlwb{
display: inline-block;
width: 25px;
height: 25px;
background: url("../img/icons-1.png") no-repeat 0px -880px; /*偏移量量一下*/
position: absolute;
left: 5px;
top: 3px;
}
#alter_sale .a a:hover{
color: red;
}
#alter_sale .a a:hover .xlwb{
background: url("../img/icons-1.png") no-repeat -140px -880px; /*偏移量量一下*/
}
/*腾讯微博图标的设置*/
#alter_sale .txwb{
display: inline-block;
width: 25px;
height: 25px;
background: url("../img/icons-1.png") no-repeat 0px -908px; /*偏移量量一下*/
position: absolute;
left: 5px;
top: 3px;
}
#alter_sale .a a:hover .txwb{
background: url("../img/icons-1.png") no-repeat -140px -908px; /*偏移量量一下*/
}
/*人人网图标的设置*/
#alter_sale .rrw{
display: inline-block;
width: 25px;
height: 25px;
background: url("../img/icons-1.png") no-repeat 0px -938px; /*偏移量量一下*/
position: absolute;
left: 5px;
top: 3px;
}
#alter_sale .a a:hover .rrw{
background: url("../img/icons-1.png") no-repeat -140px -938px; /*偏移量量一下*/
}
/*qq空间图标的设置*/
#alter_sale .qqkj{
display: inline-block;
width: 25px;
height: 25px;
background: url("../img/icons-1.png") no-repeat 0px -854px; /*偏移量量一下*/
position: absolute;
left: 5px;
top: 3px;
}
#alter_sale .a a:hover .qqkj{
background: url("../img/icons-1.png") no-repeat -140px -854px; /*偏移量量一下*/
}
#alter_sale .b span{
display: inline-block;
width: 33px;
height: 33px;
background: url("../img/icons.png") no-repeat 0px 0px; /*偏移量量一下*/
position: absolute;
left: -35px;
}
#alter_sale .b a{
color: #00925f;
font-size: 17px;
position: relative;
}
#alter_sale .c,.e a{
font-size: 8px;
}
#alter_sale .d a span{
display: inline-block;
width: 33px;
height: 33px;
background: url("../img/icons.png") no-repeat -38px 0px; /*偏移量量一下*/
position: absolute;
left: -55px;
}
#alter_sale .d a{
color: #00925f;
font-size: 17px;
position: relative;
}HTML
<!-- 页面的售后服务 -->
<div id="alter_sale">
<div class="container">
<ul>
<li>
<ol>
<li><a href="#">关于我们</a></li>
<li><a href="#">关于OPPO</a></li>
<li><a href="#">新闻中心</a></li>
<li><a href="#">人才招聘</a></li>
</ol>
</li>
<li>
<ol>
<li><a href="#">推荐机型</a></li>
<li><a href="#">N3</a></li>
<li><a href="#">R5</a></li>
<li><a href="#">R1C</a></li>
<li><a href="#">Find 7</a></li>
</ol>
</li>
<li>
<ol>
<li><a href="#">购物相关</a></li>
<li><a href="#">帮助中心</a></li>
<li><a href="#">周边产品</a></li>
<li><a href="#">OPPO体验店</a></li>
<li><a href="#">客户服务政策</a></li>
</ol>
</li>
<li>
<ol>
<li><a href="#">会员中心</a></li>
<li><a href="#">产品注册</a></li>
<li><a href="#">会员注册</a></li>
<li><a href="#">会员登录</a></li>
</ol>
</li>
<li>
<ol>
<li><a href="#">关注我们</a></li>
<li class="a">
<a href="#">
<span class="xlwb"></span>新浪微博</a>
</li>
<li class="a"><a href="#"><span class="txwb"></span>腾讯微博<li></a></li>
<li class="a"><a href="#"><span class="rrw"></span>人人网</a></li>
<li class="a"><a href="#"><span class="qqkj"></span>QQ空间</a></li>
</ol>
</li>
<li>
<ol>
<li><a href="#">联系我们</a></li>
<li class="b"><a href="#"><span></span>4001-666-88</a></li>
<li class="c">
<a href="#">7*24小时客服电话
</a></li>
<li class="d"><a href="#"><span></span>在线客服</a></li>
<li class="e"><a href="#">服务时段:8:30-22:00</a></li>
</ol>
</li>
</ul>
</div>
</div>边栏推荐
- MySQL5.7及SQLyogV12安装及使用破解及常用命令
- ANSYS secondary development - MFC interface calls ADPL file
- Multiple commands produce ‘.../xxx.app/Assets.car‘问题
- Leetcode70 suppose you are climbing stairs. You need n steps to reach the roof. You can climb one or two steps at a time. How many different ways can you climb to the roof?
- Alibaba cloud - Wulin headlines - site building expert competition
- 负整数及浮点数的二进制表示
- 有趣的 Kotlin 0x06:List minus list
- 做题笔记5(有序数组的平方)
- 配置web服务器步骤详细记录(多有借鉴)
- MySQL 5.7 and sqlyogv12 installation and use cracking and common commands
猜你喜欢

Re13:读论文 Gender and Racial Stereotype Detection in Legal Opinion Word Embeddings

MySQL5.7及SQLyogV12安装及使用破解及常用命令

USB产品(FX3、CCG3PA)的调试方法

Introduction and implementation of queue (detailed explanation)

HyperMesh auto save (enhanced) plug-in instructions

Leetcode daily practice - 160. Cross linked list

Ruoyi集成flyway后启动报错的解决方法

Ansa secondary development - Introduction to interface development tools

有趣的 Kotlin 0x08:What am I

【深度学习】:《PyTorch入门到项目实战》第二天:从零实现线性回归(含详细代码)
随机推荐
About mit6.828_ HW9_ Some problems of barriers xv6 homework9
Hdu1847 problem solving ideas
MD5 encryption verification
【深度学习】:《PyTorch入门到项目实战》第四天:从0到1实现logistic回归(附源码)
Ansa secondary development - apps and ansa plug-in management
Learn ABAQUS script programming script in an hour
Microsoft question 100 - do it every day - question 11
阿里云 MSE 支持 Go 语言流量防护
ABAQUS GUI interface solves the problem of Chinese garbled code (plug-in Chinese garbled code is also applicable)
egg(十九):使用egg-redis性能优化,缓存数据提升响应效率
Re13:读论文 Gender and Racial Stereotype Detection in Legal Opinion Word Embeddings
Leetcode9. Palindromes
MD5加密验证
Sort 5-count sort
关于MIT6.828_HW9_barriers xv6 homework9的一些问题
Leetcode learn to insert and sort unordered linked lists (detailed explanation)
HyperMesh auto save (enhanced) plug-in instructions
Signal shielding and processing
有趣的 Kotlin 0x07:Composition
WSL+Valgrind+Clion