其他分享
首页 > 其他分享> > 纯手工html+css实现静态游戏网首页

纯手工html+css实现静态游戏网首页

作者:互联网

效果图:

         

        主要通过浮动、定位对网页进行布局,实现鼠标悬浮图片的偏移、字体的缩放、背景颜色改变、以及动画效果等相关功能。

html部分代码:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./开心网.css" type="text/css"/>
</head>
<body>
<div>
    <div class="zong">
        
        <div class="header">
           <ul>
               <li>首页</li>
               <div class="right">
               <li>注册<span> |</span></li>
               <li>登录<span> |</span></li>
               <li>帮助<span> |</span></li>
               <li>更多</li>
                </div>
           </ul>
        </div>

           
        <div class="section1">
            <div class="left">
                <ul>
                    <li><img src="./kaixinwangtupian/sub-2.gif" alt=""><span>征战四方</span></li>
                    <li><img src="./kaixinwangtupian/sub-3.gif" alt=""><span>龙将</span></li>
                    <li><img src="./kaixinwangtupian/sub-4.gif" alt=""><span>弹弹堂</span></li>
                    <li><img src="./kaixinwangtupian/sub-5.gif" alt=""><span>凡人修真2</span></li>
                    <li><img src="./kaixinwangtupian/sub-6.gif" alt=""><span>一骑当先</span></li>
                    <li><img src="./kaixinwangtupian/sub-7.gif" alt=""><span>宫廷计</span></li>
                    <li><img src="./kaixinwangtupian/sub-8.gif" alt=""><span>神仙道</span></li>
                </ul>
            </div>

            <div class="center">
                <img src="./kaixinwangtupian/xdtgg_frxz2_44.jpg" alt="">
            </div>

            <div class="right">
               <form action="" method="get">
                   <h2>开心网用户登录</h2>
                   <table>
                       <tr>
                           <td>账号:</td>
                           <td><input type="text" placeholder="字母、数字的六位字符"></td>
                       </tr>
                       <tr class="only">
                           <td>密码:</td>
                           <td><input type="text" placeholder="四位数字"></td>
                       </tr>
                    </table>
                </form>
                <span><a href="">立即注册</a></span>
                <span><a href="">忘记密码</a></span>
            </div>
        </div>


        <div class="section2">
            <div class="left">
                <div class="top">
                    <span>全部游戏</span>
                    <span>战争策略|</span>
                    <span>体育经营|</span>
                    <span>社交游戏</span>
                </div>

                <div class="left1">
                    <div><img src="./kaixinwangtupian/img-4.jpg" alt="">
                        <p>三国题材横版RPG网游,丰富的</p> 
                        <p> 武将系统</p>
                        <p>类型:角色扮演</p>
                        <p>游戏人气: <span>470921</span> </p>
                    <a href="">选服</a>
                    <a href="">进入游戏</a>
                    </div>
                </div>
 
                <div class="right">
                    <div><img src="./kaixinwangtupian/img-5.jpg" alt="">
                        <p>一款不建主城不等CD,不占资</p> 
                        <p> 源,全程战斗</p>
                        <p>类型:战征策略</p>
                        <p>游戏人气: <span>8745221</span> </p>
                    <a href="">选服</a>
                    <a href="">进入游戏</a>
                    </div>
                </div>
            </div>

            <div class="right">
                <div class="title">新闻公告</div>
                <div class="bottom">
                    <ul>
                        <li>[征战四方] 开心首服·黄巾之乱</li>
                        <li>[龙将] 火爆8服·八门金</li>
                        <li>[弹弹堂] 41服开启·万人竞技</li>
                        <li>[凡人修真2] 03月08日·四海帝王</li>
                        <li>[一骑当先] 开心2服上线送黄金</li>
                        <li>[宫廷计] 03月06日·西施秘史</li>
                        <li>[凡人修真2] 03月08日·四海帝王</li>
                    </ul>
                </div>
            </div>
        </div>

        <div class="bottom">
            <div class="left">
                <h4>角色扮演</h4>
                <ul>
                    <li> <img src="./kaixinwangtupian/img-6.jpg" alt=""> 
                    <p>游戏人气:1765314</p> <p>游戏状态:<span>22区开启</span> </p>
                    <a href="">选服</a><a href="">进入游戏</a> </li>
                    <li><img src="./kaixinwangtupian/img-7.jpg" alt=""> 
                        <p>游戏人气:1245814</p> <p>游戏状态:<span>23区开启</span> </p>
                        <a href="">选服</a><a href="">进入游戏</a> </li>
                    <li><img src="./kaixinwangtupian/img-8.jpg" alt=""> 
                        <p>游戏人气:1232158</p> <p>游戏状态:<span>25区开启</span> </p>
                        <a href="">选服</a><a href="">进入游戏</a> </li>
                    <li><img src="./kaixinwangtupian/img-9.jpg" alt=""> 
                        <p>游戏人气:123745</p> <p>游戏状态:<span>18区开启</span> </p>
                        <a href="">选服</a><a href="">进入游戏</a></li>

                    <li><img src="./kaixinwangtupian/img-10.jpg" alt=""> 
                        <p>游戏人气:178501</p> <p>游戏状态:<span>火爆开启</span> </p>
                        <a href="">选服</a><a href="">进入游戏</a></li>
                    <li><img src="./kaixinwangtupian/img-11.jpg" alt=""> 
                        <p>游戏人气:983014</p> <p>游戏状态:<span>2服开启</span> </p>
                        <a href="">选服</a><a href="">进入游戏</a></li>
                    <li><img src="./kaixinwangtupian/img-12.jpg" alt=""> 
                        <p>游戏人气:745214</p> <p>游戏状态:<span>4服开启</span> </p>
                        <a href="">选服</a><a href="">进入游戏</a></li>
                    <li><img src="./kaixinwangtupian/img-13.jpg" alt=""> 
                        <p>游戏人气:654814</p> <p>游戏状态:<span>火爆开启</span> </p>
                        <a href="">选服</a><a href="">进入游戏</a></li>
                </ul>
            </div>
            <div class="right">
                <div class="top"><img src="./kaixinwangtupian/ad1.jpg" alt=""><br>
                    <img src="./kaixinwangtupian/ad2.jpg" alt=""></div>
                <div class="bottom">
                    <h4>游戏视频</h4>
                    <div class="first"><img src="./kaixinwangtupian/img-1.jpg" alt=""><p>《航海之王》麻辣<br>炫酷反穿越,英雄<br> 时尚大变身!</p></div>
                    <div class="second"><img src="./kaixinwangtupian/img-2.jpg" alt=""><p>《弹弹堂》吴克群<br>同名激情主题MV,<br>体验修真乐趣</p></div>
                </div>
            </div>

        </div>
    </div>
    <div class="over"><img src="./kaixinwangtupian/ad3.jpg" alt=""></div>
</div>

    
</body>
</html>

html/css以及图片地址:

链接:https://pan.baidu.com/s/1M8qS_-4U6zIpOoH_ZQc9PA 
提取码:xhhy

标签:游戏,游戏网,开启,html,选服,进入,修真,人气,css
来源: https://blog.csdn.net/m0_60187384/article/details/122148725