网页设计—仿QQ做的一个网页


placeholder image
admin 发布于:2013-11-21 18:02:00
阅读:loading

前段时间看了下传智播客的html方面的视频讲解,确实有些收获,先感谢一下那些无私的讲师。这两天有点时间想想作个页面出来吧,正好检查一下水平看看,于是就开始做了,另外一个原因是想着开发人员写这种静态代码,可能会更好。外行人乍一眼看上去应该觉得挺像吧,在专业的设计师眼里应该觉得很糙吧。
QQ原网址:http://pc.qq.com/
        纯eclipse下手写,在FF下测试的,写完了之后发现支持IE8以上的浏览器,IE6-7下还是挺乱的,这个就不用管了。
页面中的所有图片都来自QQ网页中的,值得说的是它里面全是用的一张大背景图,然后使用坐标的形式来引用一个一个的小图标,虽然很早就知道这种方式,但一直没用到过,不会,页面预览效果图如下:

image.png

html源码:

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>--QQ-QQ-TT-QQ-</title>

<link rel="stylesheet" href="qq/qq.css" style="text/css" />

<script type="text/javascript">

    function changeBg(obj){

        

        var lis = document.getElementsByTagName("li");

        for(var i=0;i<lis.length;i++){

            var li = lis[i];

            if(li.className == "menuContentTitle_li"){

                li.className = "";

            }

        }

        obj.className = "menuContentTitle_li";

    }

</script>

</head>

<body>

    

    <div class="topMenu">

        <div class="topContent">

            <a href="javascript:void(0);"></a>

            <label>·</label>

            <a href="javascript:void(0);"></a>

            <label>·</label>

            <a href="javascript:void(0);"></a>

            <label>·</label>

            <a href="javascript:void(0);">QQ</a>

            <label>·</label>

            <a href="javascript:void(0);">QQ</a>

            <label>·</label>

            <a href="javascript:void(0);"></a>

        </div>

    </div>

    

    <div class="titleContent">

        <img src="qq/logo.png" alt="" align="top" />

        <h1></h1>

        <p>

            

        </p>

    </div>

    

    <div class="menuContent">

        

        <ul class="menuContentTitle">

            <li class="menuContentTitle_li" onclick="changeBg(this)"></li>

            <li onclick="changeBg(this)">PC</li>

            <li onclick="changeBg(this)">MAC</li>

            <li onclick="changeBg(this)">线</li>

            <li onclick="changeBg(this)"></li>

            <li id="menuContentTitle_li_pos">

                <div id="qq"><strong>QQ</strong></div>

            </li>

            <li class="clear"></li>

        </ul>

    </div>

    

    <div class="centerContent">

        <img src="qq/left.png" align="middle" class="centerContent_Left" />

        <div class="centerContent_Right">

            <h1></h1>

            <ul>

                <li>·<a href="javascript:void(0);">8.0</a></li>

                <li>·<a href="javascript:void(0);">QQ10.0 </a></li>

                <li>·<a href="javascript:void(0);"></a></li>

                <li>·<a href="javascript:void(0);">(PC)2.0 </a></li>

                <li>·<a href="javascript:void(0);">QQ3.7</a></li>

                <li>·<a href="javascript:void(0);">QQ2012 Beta2(Q+)Q+便</a></li>

                <li>·<a href="javascript:void(0);">Foxmail 7</a> </li>

            </ul>

            <div class="clear"></div>

        </div>

        

    </div>

    

    <div class="toolsContent">

        

        <div class="softwareList">

            <div class="softwareListTitle">

                <h1></h1>

                <a href="javascript:void(0);">&gt;&gt;</a>

            </div>

            

            <ul class="softList">

                <li>

                    <span class="moreList_li" id="moreList_li_QQ"></span>

                    <h1><a href="javascript:void(0);">QQ2013 SP4<label class="hot_none"></label></a>2013-10-31</h1>

                    <p class="softList_li_p">

                        <a href="javascript:void(0);" class="softList_li_down"></a>

                        <label>|</label>

                        <a href="javascript:void(0);"></a>

                    </p>

                    <p class="softList_li_info">

                        

                    </p>

                </li>

                <li>

                    <span class="moreList_li" id="moreList_li_GJ"></span>

                    <h1><a href="javascript:void(0);"><label class="hot"></label></a>2013-10-22</h1>

                    <p class="softList_li_p">

                        <a href="javascript:void(0);" class="softList_li_down"></a>

                        <label>|</label>

                        <a href="javascript:void(0);"></a>

                    </p>

                    <p class="softList_li_info">

                        便

                    </p>

                </li>

                <li>

                    <span class="moreList_li" id="moreList_li_RJ"></span>

                    <h1><a href="javascript:void(0);"><label class="hot_none"></label></a>2013-08-21</h1>

                    <p class="softList_li_p">

                        <a href="javascript:void(0);" class="softList_li_down"></a>

                        <label>|</label>

                        <a href="javascript:void(0);"></a>

                    </p>

                    <p class="softList_li_info">

                        

                    </p>

                </li>

                <li>

                    <span class="moreList_li" id="moreList_li_YY"></span>

                    <h1><a href="javascript:void(0);">QQ10.04<label class="hot"></label></a>2013-10-19</h1>

                    <p class="softList_li_p">

                        <a href="javascript:void(0);" class="softList_li_down"></a>

                        <label>|</label>

                        <a href="javascript:void(0);"></a>

                    </p>

                    <p class="softList_li_info">

                        

                    </p>

                </li>

                <li>

                    <span class="moreList_li" id="moreList_li_LLQ"></span>

                    <h1><a href="javascript:void(0);">QQ<label class="hot"></label></a>2013-10-31</h1>

                    <p class="softList_li_p">

                        <a href="javascript:void(0);" class="softList_li_down"></a>

                        <label>|</label>

                        <a href="javascript:void(0);"></a>

                    </p>

                    <p class="softList_li_info">

                        

                    </p>

                </li>

                <li>

                    <span class="moreList_li" id="moreList_li_YX"></span>

                    <h1><a href="javascript:void(0);">QQ<label class="hot_none"></label></a>2013-01-24</h1>

                    <p class="softList_li_p">

                        <a href="javascript:void(0);" class="softList_li_down"></a>

                        <label>|</label>

                        <a href="javascript:void(0);"></a>

                    </p>

                    <p class="softList_li_info">

                        

                    </p>

                </li>

                <li>

                    <span class="moreList_li" id="moreList_li_SRF"></span>

                    <h1><a href="javascript:void(0);">QQ<label class="hot_none"></label></a>2013-07-12</h1>

                    <p class="softList_li_p">

                        <a href="javascript:void(0);" class="softList_li_down"></a>

                        <label>|</label>

                        <a href="javascript:void(0);"></a>

                    </p>

                    <p class="softList_li_info">

                        

                    </p>

                </li>

                <li>

                    <span class="moreList_li" id="moreList_li_SJ"></span>

                    <h1><a href="javascript:void(0);">pc<label class="hot_none"></label></a>2013-04-26</h1>

                    <p class="softList_li_p">

                        <a href="javascript:void(0);" class="softList_li_down"></a>

                        <label>|</label>

                        <a href="javascript:void(0);"></a>

                    </p>

                    <p class="softList_li_info">

                        便

                    </p>

                </li>

                <li>

                    <span class="moreList_li" id="moreList_li_TM"></span>

                    <h1><a href="javascript:void(0);">TM2013<label class="hot_none"></label></a>2013-01-17</h1>

                    <p class="softList_li_p">

                        <a href="javascript:void(0);" class="softList_li_down"></a>

                        <label>|</label>

                        <a href="javascript:void(0);"></a>

                    </p>

                    <p class="softList_li_info">

                        QQ

                    </p>

                </li>

            </ul>

        </div>

        <div class="moreList">

            <div class="softwareListTitle" id="softwareMoreList">

                <h1></h1>

                <a href="javascript:void(0);">&gt;&gt;</a>

            </div>

            

            <ul class="moreListUl">

                <li id="QQxuanfeng">

                    <a href="javascript:void(0);">QQ</a>

                    <p class="moreList_li_p">

                        <a href="javascript:void(0);" class="moreList_li_down"></a>

                    </p>

                </li>

                <li id="QQshipin">

                    <a href="javascript:void(0);"></a>

                    <p class="moreList_li_p">

                        <a href="javascript:void(0);" class="moreList_li_down"></a>

                    </p>

                </li>

                <li id="QQyingyin">

                    <a href="javascript:void(0);">QQ</a>

                    <p class="moreList_li_p">

                        <a href="javascript:void(0);" class="moreList_li_down"></a>

                    </p>

                </li>

                <li id="QQxiaoqshuzhuo">

                    <a href="javascript:void(0);">Q</a>

                    <p class="moreList_li_p">

                        <a href="javascript:void(0);" class="moreList_li_down"></a>

                    </p>

                </li>

                <li id="QQfoxmail">

                    <a href="javascript:void(0);">Foxmail</a>

                    <p class="moreList_li_p">

                        <a href="javascript:void(0);" class="moreList_li_down"></a>

                    </p>

                </li>

                <li id="QQwangumumakexing">

                    <a href="javascript:void(0);"></a>

                    <p class="moreList_li_p">

                        <a href="javascript:void(0);" class="moreList_li_down"></a>

                    </p>

                </li>

                <li id="QQqqyinyue">

                    <a href="javascript:void(0);">QQ10.04</a>

                    <p class="moreList_li_p">

                        <a href="javascript:void(0);" class="moreList_li_down"></a>

                    </p>

                </li>

                <li id="QQqqyouxi">

                    <a href="javascript:void(0);">QQ</a>

                    <p class="moreList_li_p">

                        <a href="javascript:void(0);" class="moreList_li_down"></a>

                    </p>

                </li>

                <li id="QQshoujiqq">

                    <a href="javascript:void(0);">QQ</a>

                    <p class="moreList_li_p">

                        <a href="javascript:void(0);" class="moreList_li_down"></a>

                    </p>

                </li>

                <li id="QQqqwubi">

                    <a href="javascript:void(0);">QQ</a>

                    <p class="moreList_li_p">

                        <a href="javascript:void(0);" class="moreList_li_down"></a>

                    </p>

                </li>

                <li id="QQqqcidian">

                    <a href="javascript:void(0);">QQ</a>

                    <p class="moreList_li_p">

                        <a href="javascript:void(0);" class="moreList_li_down"></a>

                    </p>

                </li>

                <li id="QQqqgongjulan">

                    <a href="javascript:void(0);">QQ</a>

                    <p class="moreList_li_p">

                        <a href="javascript:void(0);" class="moreList_li_down"></a>

                    </p>

                </li>

            </ul>

            

            <!--  -->

            <div class="hezuohuoban">

                <h1></h1>

                <ul>

                    <li><a href="javascript:void(0);"></a></li>

                    <li><a href="javascript:void(0);"></a></li>

                    <li><a href="javascript:void(0);">IT168</a></li>

                    <li><a href="javascript:void(0);"></a></li>

                    <li><a href="javascript:void(0);"></a></li>

                </ul>

            </div>

        

        </div>

        

    </div>

    <div class="bottomContent">

        <p>Copyright © 1998 - 2012 Tencent. All Rights Reserved.</p>

        <p> </p>

    </div>

    

</body>

</html>

 
注:网页里面没用使用<table>标记,并非不是觉得使用table不好,纯练手。

源码包下载(已找不到了)

image.png

 点赞


 发表评论

当前回复:作者

 评论列表


留言区