adfgh

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        .ss
        {
        background-image:url("images/hl.jpg");
        width:100% ;
        height:180px;
        clear:both;
       }
        *{
        margin:0px;
        padding:0px;
        }
         body{
             background-color:#E1E0C7;
         }
         .top{
           border:1px ;
           width:100%;
           height:45px;
           background:#F0EDE2;
           opacity:0.7;
         }
         .topic{
           width:1000px;
           margin:0 auto;
         }
         .topic .logo{
           float:left;
           margin-right:20px;
         }
         .topic nav{
           float:left;
         }
        .topic nav ul{
          list-style-type:none;/*去掉符号*/
        }
        .topic nav ul li{
           display:inline-block;/*水平排列*/
        }
       .top nav ul li a{/*默认样式 a是行内元素不能修改大小*/
           display:inline-block;/*变成行内块*/
           height:45px;
           width:80px;
           line-height:45px;
           text-align:center;
           text-decoration:none;
           color:#5D6146;
           cursor:move;/*鼠标样式*/
       }
       .top nav ul li a:visited{
       font-size:50px;
       }
       .top nav ul li a:hover{
       color:red;
       font-weight:bolder;
       }
       .top nav ul li a:active{
       font-weight:bolder;
       border-bottom:2px solid blue;
       }


    </style>
</head>
<body>


<div class="ss">
<div class="top">
    <div class="topic">
        <div class="logo">

            <h1>古诗文网</h1>
        </div>

        <nav>
            <ul>
                <li><a href=" ">推荐</a > </li>
                <li><a href="#">诗文</a > </li>
                <li><a href="#">名句</a > </li>
                <li><a href="#">作者</a > </li>
                <li><a href="#">古籍</a > </li>
                <li><a href="#">我的</a > </li>
                <li><a href="#">app</a > </li>
            </ul>
        </nav>


    <!DOCTYPE html>
<html lang="en">
<head>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>图片欣赏</title>
    <style type="text/css">
        body{
            background-color: burlywood;
        }
        ul{list-style-type:none;/*去掉列表符号*/}
        ul li{/*层次关系*/
            border:1px solid red;
            width:180px;
            height:260px;
            background-color: #ffffff;
            padding:10px;
            /*块变成行内元素*/
            float:left;/*left  right*/
            margin:10px;/*li的外边界*/
        }
        ul li:hover{/*伪类 鼠标经过的那个状态的样式*/
            background-color: green;
        }
        ul li img{
            width:180px;
            height:200px;
        }
        ul li h3{
            text-align: center;
        }
    </style>
</head>
<body>
    <ul>
        <li><img src="images1/gallery-item1.jpg"/><h3>棒槌岛1</h3></li>
        <li><img src="images1/gallery-item2.jpg"/><h3>棒槌岛2</h3></li>
        <li><img src="images1/gallery-item3.jpg"/><h3>棒槌岛3</h3></li>
        <li><img src="images1/gallery-item4.jpg"/><h3>棒槌岛4</h3></li>
        <li><img src="images1/gallery-item5.jpg"/><h3>棒槌岛5</h3></li>
        <li><img src="images1/gallery-item6.jpg"/><h3>棒槌岛6</h3></li>
        <li><img src="images1/gallery-item7.jpg"/><h3>棒槌岛7</h3></li>
        <li><img src="images1/gallery-item8.jpg"/><h3>棒槌岛8</h3></li>
    </ul>
</body>
</html>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值