当前位置:网站首页>综合设计一个OPPE主页--页面服务部分
综合设计一个OPPE主页--页面服务部分
2022-07-28 16:03:00 【(-^_^-)】
分析:五个部分 形式相同 除了内容不同 ---------------使用列表做-ul-li
每一个列表里面都有图片和文字 ------图文混排----使用dl-----dt图片 dd文字
HTML
<!-- 页面的服务部分 -->
<div id="service">
<div class="container">
<ul>
<li class="service0">
<dl>
<dt></dt>
<dd class="dd1">正品保障</dd>
<dd class="dd2">所有商品都是原装的</dd>
</dl>
</li>
<li class="service1">
<dl>
<dt></dt>
<dd class="dd1">79元起包邮</dd>
<dd class="dd2">高效的物流直达配送</dd>
</dl>
</li>
<li class="service2">
<dl>
<dt></dt>
<dd class="dd1">7天退换货</dd>
<dd class="dd2">支持7天退货,30天换货</dd>
</dl>
</li>
<li class="service3">
<dl>
<dt></dt>
<dd class="dd1">285自提点</dd>
<dd class="dd2">轻松自在,覆盖各大城市</dd>
</dl>
</li>
<li class="service4">
<dl>
<dt></dt>
<dd class="dd1">365家客服网点</dd>
<dd class="dd2">所有商品都是原装的</dd>
</dl>
</li>
</ul>
</div>
</div>CSS
/**************************************************
*****************页面的服务部分的样式**************
***************************************************/
#service{
height: 100px;
background-color: #fff;
}
#service dl{
width: 200px;
height: 100px;
/*border: 1px solid #000;*/
position: relative; /*为了下面的图片部分定位使用relative*/
}
#service dl dt{ /*图片部分*/
width: 42px;
height: 42px;
background: url("../img/icons.png") no-repeat 0px -44px;
position: absolute ;
top: 30px;
left: 10px;
}
#service .service1 dt:nth-child(1){
background: url("../img/icons.png") no-repeat -51px -44px;
}
#service .service2 dt:nth-child(1){
background: url("../img/icons.png") no-repeat -100px -44px;
}
#service .service3 dt:nth-child(1){
background: url("../img/icons.png") no-repeat -152px -44px;
}
#service .service4 dt:nth-child(1){
background: url("../img/icons.png") no-repeat -200px -41px;
}
#service dl .dd1{
position: absolute ;
top: 30px;
left: 60px;
font-weight: bold;
}
#service dl .dd2{
position: absolute ;
top: 50px;
left: 60px;
color: #aaa;
font-size: 12px;
}
#service li{
float: left;
margin: 0px 10px;
transition:all 0.3s linear ;
}
#service li:hover{
transform: translateY(-10px);
}
#service ul{
width: 1110px;
margin: 0 auto;
height: 100px;
border-bottom: 1px solid #666;
}实现效果:

边栏推荐
- Analysis of echo service model in the first six chapters of unp
- 时间复杂度
- Learn to use MySQL explain to execute the plan, and SQL performance tuning is no longer difficult
- Ansa secondary development - build ansa/meta secondary development environment on pycharm
- How to set ticdc synchronization data to only synchronize the specified library?
- Reset grafana login password to default password
- 智慧园区是未来发展的趋势吗?
- 概率论与数理统计第一章
- NoSQL introduction practice notes I
- HyperMesh auto save (enhanced) plug-in instructions
猜你喜欢

【深度学习】:《PyTorch入门到项目实战》第二天:从零实现线性回归(含详细代码)

【深度学习】:《PyTorch入门到项目实战》第七天之模型评估和选择(上):欠拟合和过拟合(含源码)

ABAQUS GUI interface solves the problem of Chinese garbled code (plug-in Chinese garbled code is also applicable)

Brother Ali teaches you how to correctly understand the problem of standard IO buffer

Call DLL file without source code

Interesting kotlin 0x06:list minus list

在AD中添加差分对及连线

概率论与数理统计第一章

有趣的 Kotlin 0x07:Composition

【深度学习】:《PyTorch入门到项目实战》第五天:从0到1实现Softmax回归(含源码)
随机推荐
Leetcode learn to insert and sort unordered linked lists (detailed explanation)
Optimization of network request success rate in IM instant messaging software development
获取时间戳的三种方法的效率比较
Outline and principle of structured design -- modularization
Interesting kotlin 0x06:list minus list
MySQL 5.7 and sqlyogv12 installation and use cracking and common commands
Tcp/ip related
Quickly master kotlin set functions
Redis系列4:高可用之Sentinel(哨兵模式)
"Weilai Cup" 2022 Niuke summer multi school training camp 3 h.hacker sam+ segment tree /dp/ divide and conquer (without the largest sub segment and of the inspection interval)
Sort 5-count sort
【深度学习】:《PyTorch入门到项目实战》第五天:从0到1实现Softmax回归(含源码)
Analysis of echo service model in the first six chapters of unp
USB产品(FX3、CCG3PA)的调试方法
Introduction and implementation of queue (detailed explanation)
Splash (rendering JS service) introduction installation
Re10:读论文 Are we really making much progress? Revisiting, benchmarking, and refining heterogeneous gr
【深度学习】:《PyTorch入门到项目实战》第四天:从0到1实现logistic回归(附源码)
Leetcode daily practice - 160. Cross linked list
WSL+Valgrind+Clion
