当前位置:网站首页>Comprehensively design an oppe homepage -- page service part
Comprehensively design an oppe homepage -- page service part
2022-07-28 17:02:00 【(-^_^-)】
analysis : Five parts In the same form Except for the content --------------- Use list to do -ul-li
There are pictures and words in every list ------ Mixed arrangement of pictures and texts ---- Use dl-----dt picture dd written words
HTML
<!-- The service part of the page -->
<div id="service">
<div class="container">
<ul>
<li class="service0">
<dl>
<dt></dt>
<dd class="dd1"> Genuine protection </dd>
<dd class="dd2"> All goods are original </dd>
</dl>
</li>
<li class="service1">
<dl>
<dt></dt>
<dd class="dd1">79 Package mail from yuan </dd>
<dd class="dd2"> Efficient direct logistics distribution </dd>
</dl>
</li>
<li class="service2">
<dl>
<dt></dt>
<dd class="dd1">7 Day return and exchange </dd>
<dd class="dd2"> Support 7 Day return ,30 I'd like to exchange it in a few days </dd>
</dl>
</li>
<li class="service3">
<dl>
<dt></dt>
<dd class="dd1">285 Self raising point </dd>
<dd class="dd2"> Relaxed and comfortable , Covering all major cities </dd>
</dl>
</li>
<li class="service4">
<dl>
<dt></dt>
<dd class="dd1">365 Customer service outlets </dd>
<dd class="dd2"> All goods are original </dd>
</dl>
</li>
</ul>
</div>
</div>CSS
/**************************************************
***************** Style of the service part of the page **************
***************************************************/
#service{
height: 100px;
background-color: #fff;
}
#service dl{
width: 200px;
height: 100px;
/*border: 1px solid #000;*/
position: relative; /* Use... For the positioning of the following image parts relative*/
}
#service dl dt{ /* Picture part */
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;
}Realization effect :

边栏推荐
- 我该如何理解工艺
- 3D建模工具Archicad 26全新发布
- Alibaba cloud - Wulin headlines - site building expert competition
- 累计出货130亿颗Flash,4亿颗MCU!深度解析兆易创新的三大产品线
- Interesting kotlin 0x08:what am I
- 做题笔记4(第一个错误的版本,搜索插入位置)
- Applet: scroll view slides to the bottom by default
- Do you really understand CMS garbage collector?
- Detailed record of steps to configure web server (many references)
- 智慧园区是未来发展的趋势吗?
猜你喜欢

Call DLL file without source code

ERROR: transport library not found: dt_ socket

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

Text filtering skills
![[deep learning]: day 6 of pytorch introduction to project practice: multi-layer perceptron (including code)](/img/19/18d6e94a1e0fa4a75b66cf8cd99595.png)
[deep learning]: day 6 of pytorch introduction to project practice: multi-layer perceptron (including code)

HTAP是有代价的

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

Do you really understand CMS garbage collector?

有趣的 Kotlin 0x08:What am I

Quickly master kotlin set functions
随机推荐
Interesting kotlin 0x07:composition
2020Q2全球平板市场出货大涨26.1%:华为排名第三,联想增幅最大!
有趣的 Kotlin 0x06:List minus list
Interesting kotlin 0x08:what am I
Egg (19): use egg redis performance optimization to cache data and improve response efficiency
SUSE Ceph 快速部署 – Storage6
【从零开始学习SLAM】将坐标系变换关系发布到 topic tf
Ruoyi集成flyway后启动报错的解决方法
概率论与数理统计第一章
[deep learning]: day 4 of pytorch introduction to project practice: realize logistic regression from 0 to 1 (with source code)
Introduction and implementation of stack (detailed explanation)
获取时间戳的三种方法的效率比较
阿里大哥教你如何正确认识关于标准IO缓冲区的问题
深入理解 DeepSea 和 Salt 部署工具 – Storage6
MySQL安装教程
How to set ticdc synchronization data to only synchronize the specified library?
Go language slow entry - process control statement
epoll水平出发何边沿触发
Splash (rendering JS service) introduction installation
About mit6.828_ HW9_ Some problems of barriers xv6 homework9
