当前位置:网站首页>综合设计一个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;
}实现效果:

边栏推荐
- Epoll horizontal departure, which edge triggers
- Learn ABAQUS script programming script in an hour
- LwIP develops | socket | TCP | keepalive heartbeat mechanism
- leetcode9. 回文数
- Each account corresponds to all passwords, and then each password corresponds to all accounts. How to write the brute force cracking code
- Interesting kotlin 0x08:what am I
- 做题笔记5(有序数组的平方)
- Do you really understand CMS garbage collector?
- Some suggestions on optimizing HyperMesh script performance
- Efficiency comparison of three methods for obtaining timestamp
猜你喜欢

小程序:scroll-view默认滑倒最下面

Several methods of HyperMesh running script files

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

Debugging methods of USB products (fx3, ccg3pa)

Cluster construction and use of redis5

Introduction and implementation of stack (detailed explanation)

Ruoyi's solution to error reporting after integrating flyway

HyperMesh auto save (enhanced) plug-in instructions

【深度学习】:《PyTorch入门到项目实战》第四天:从0到1实现logistic回归(附源码)

IM即时通讯开发优化提升连接成功率、速度等
随机推荐
【JS】1394- ES2022 的 8 个实用的新功能
leetcode70假设你正在爬楼梯。需要 n 阶你才能到达楼顶。每次你可以爬 1 或 2 个台阶。你有多少种不同的方法可以爬到楼顶呢?
Fx3 development board and schematic diagram
Sort 1-insert sort and Hill sort
Re14:读论文 ILLSI Interpretable Low-Resource Legal Decision Making
Mysql与Oracle的13点区别
Sort 4-heap sort and massive TOPK problem
How to set ticdc synchronization data to only synchronize the specified library?
Splash (rendering JS service) introduction installation
Introduction and implementation of queue (detailed explanation)
负整数及浮点数的二进制表示
大学生参加六星教育PHP培训,找到了薪水远超同龄人的工作
WSL+Valgrind+Clion
Simple addition, deletion, modification and query of commodity information
Applet: get element node information
MySQL5.7及SQLyogV12安装及使用破解及常用命令
Design direction of daily development plan
【深度学习】:《PyTorch入门到项目实战》第五天:从0到1实现Softmax回归(含源码)
NoSQL introduction practice notes I
[learn slam from scratch] publish the coordinate system transformation relationship to topic TF
