*新闻详情页*/>
应用了纯HTML和CSS完成了JD的轮播图,沒有加动态性实际效果,关键是应用了精准定位的专业知识。
,如图为两个侧面箭头照片。
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF⑻"> <title>LunBo</title> <style> *{ padding: 0; margin: 0; } li{ list-style: none; } .lunbo{ margin: 40px auto; height: 470px; width: 590px; position: relative; } .left,.right{ position: absolute; top: 50%; margin-top: ⑴8px; width: 24px; height: 36px; } .left{ left: 0; } .right{ right: 0; } .lunbo ul{ height: 18px; width: 151px; background: rgba(255,255,255,.3); position: absolute; bottom: 10px; left: 50%; margin-left: ⑺6px; border-radius: 10px; } .lunbo li{ height: 14px; width: 14px; border-radius: 50%; background-color: #fff; float: left; margin: 2px; } .lunbo .current{ background-color: #f40; } </style> </head> <body> <div class="lunbo"> <img src="images/lunbo.jpg" alt=""> <div class="left"><img src="images/left.png" alt=""></div> <!-- 还可以应用连接随后应用backgrounf --> <div class="right"><img src="images/right.png" alt=""></div> <ul> <li class="current"></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> </ul> </div> </body> </html>
完成了以下实际效果
总结
以上所述是网编给大伙儿详细介绍的纯HTML和CSS完成JD轮播图实际效果,期待对大伙儿有一定的协助,假如大伙儿有任何疑惑请给我留言,网编会立即回应大伙儿的。在此也十分谢谢大伙儿对脚本制作之家网站的适用!
Copyright © 2002-2020 建站平台有哪些_如何建设网站_免费自助建站_如何建立一个网站_网站建站的 版权所有 (网站地图) 粤ICP备10235580号