如下所示:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>tab</title> <style> *{margin:0; padding:0; list-style:none;} .box{ width: 1000px; overflow: hidden; margin:100px auto 0px; } #title{ line-height: 40px; background-color: rgb(247,247,247); font-size: 16px; font-weight: bold; color: rgb(102,102,102); overflow: hidden; } #title span{ float: left; width: 166px; text-align: center; } #title span:hover{ /*color: black;*/ cursor: pointer; } #content{ margin-top: 20px; } #content li{ width: 1050px; overflow: hidden; display: none; background-color: rgb(247,247,247); } #content li div{ width: 156px; margin-right: 14px; float: left; text-align: center; } #content li div a{ font-size: 14px; color: black; line-height: 14px; /* float: left;*/ display: inline-block; margin-top: 10px; } #content li a:hover{ color: #B70606; } #content li div span{ font-size: 16px; line-height: 16px; /*float: left;*/ display: block; color: rgb(102,102,102); margin-top: 10px; } #content img{ float: left; width: 155px; height: 250px; } #title .select{ background-color: rgb(10,167,112); color: white; } #content .show{ display: block; } </style></head><body> <div class="box"> <p id="title"> <span class="select">帥哥</span> <span>美女</span> <span>寵物</span> <span>影視</span> <span>英雄聯盟</span> <span>音樂</span> </p> <ul id="content"> <li class="show"> <div><img src="images/shuaige1.jpg" alt="帥哥1"><a href="#">杰森?史坦森</a><span>狂拽炫酷
主站蜘蛛池模板:
白河县|
化德县|
隆安县|
屏东市|
榆树市|
和硕县|
凤凰县|
弥勒县|
孝义市|
万载县|
乐平市|
合阳县|
额敏县|
孟州市|
古田县|
香河县|
湘潭市|
沂南县|
建德市|
东乡族自治县|
舟曲县|
万载县|
蓬溪县|
承德县|
阳新县|
信宜市|
仲巴县|
晋州市|
双流县|
连州市|
诏安县|
上林县|
芦溪县|
汾阳市|
吐鲁番市|
台中市|
鹰潭市|
雷波县|
蒙自县|
五常市|
苏尼特右旗|