简单的网页制作

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>周考模拟</title>
        <style>
            .div1{
                width: 1010px;
                height: 490px;
                }
    
            .div2{
                width: 1010px;
                height: 390px;
            }   
            .div3{
                position: relative;
                width:335px;
                height: 390px;
                float: left;
            }
            .div4{
                width:340px;
                height: 390px;
                float: left;
                margin-left: 10px;
            }
            .div5{
                width:315px;
                height: 390px;
                float: left;
                margin-left: 10px;
            }
            ol li{
                color: seashell;
                font-size: 24px;
                list-style: none;
                float: left;
                margin-top: 10px;
                margin-left: 23px;
            }
            .tou span{
                margin-top: 10px;
                float: left;
            }
            ul{
                margin-left: 600px;
            }
            ul li{
                color: #B6B6BE;
                font-size: 18px;
                list-style: none;
                float: left;
                margin-left: 17px;
                margin-top: 10px;
            }
            #yl:hover{                
                transform: rotate(360deg);
                transition: all 2s;
            }
            .im1{
                position:relative;
                top: -50px;
                

            }

           //当屏幕改变时进行移动

            @media only screen and (max-device-width:1024px ) {
                .div5{
                    width: 400px;
                }
                #ta{
                    font-size:10px
                }
            }
        </style>
    </head>
    <body>
        <center>
            <div class="div1">    
                   <table id="ta" style="font-size: 20px;width: 1010px;">
                       <tr>
                           <td>头条</td>
                           <td>社会</td>
                           <td>军事</td>
                           <td>娱乐</td>
                           <td>国际</td>
                           <td>国内</td>
                           <td>健康</td>
                           <td>体育</td>
                           <td>图片</td>
                           <td>汽车</td>
                           <td>科技</td>
                           <td>财经</td>
                           <td>星座</td>
                           <td>更多<span style="font-size: 15px;">∨</span></td>
                       </tr>
                   </table>
                
                <div class="tou" style="background:white;">
                    <span style="color: red;font-size: 22px;"><b id="yl" style="display: block;">娱乐</b></span><span style="color: #B6B6BE;margin-top: 18px;margin-left: 10px;font-size: 13px;">ENTERTAINMENT</span>
                    <ul>
                        <span id="uu">
                        <li>电视</li>
                        <li>|</li>
                        <li>电影</li>
                        <li>|</li>
                        <li>综艺</li>
                        <li>|</li>
                        <li>八卦</li>
                        <li style="font-size: 15px;margin-top: 15px;margin-left: 25px;">更多</li>
                        <li style="color: red;margin-top: 1px;margin-left: 5px;">●</li>
                        </span>
                    </ul>
                </div>
                
                <div class="div2">
                    
                    <div class="div3">
                        
                        <div style="width: 330px;height: 180px;background:#B6B6BE;">
                            <img id="lc" src="img/lc.jpg" style="width: 330px;height:150px;" />
                        <span><<猎场>></猎场>火了,深圳市一位市民的电话也</span>
                        </div>
                        <br/>
                        <span><span style="color: red;margin-left: -5px;margin-right: 5px;">●</span>父亲比肩李嘉诚,自己美貌不输范冰冰,今</span>                       
                        <div style="width: 330px;height: 188px;">
                            <br/>
                            <span style="font-size: 15px;color: #B6B6BE;"><span style="font-size: 9px;color: #B6B6BE;margin-left: 3px;">●</span>“紫薇”海陆获清新女艺人奖,33岁她穿长裙秀</span>
                            <br/>
                            <span style="font-size: 15px;color: #B6B6BE;"><span style="font-size: 9px;color: #B6B6BE;margin-left: 3px;">●</span>王心凌出席活动,整容失败满脸褶皱显老态甜心教</span>
                            <br style="margin-top:10px;"/>
                            <span style="font-size: 15px;color: #B6B6BE;"><span style="font-size: 9px;color: #B6B6BE;">●</span>谢天谢地!我们曾遇到最好的歌一听就是一辈子</span>
                            <br style="margin-top:10px;"/>
                            <span style="font-size: 15px;color: #B6B6BE;"><span style="font-size: 9px;color: #B6B6BE;">●</span>郭碧婷裹披肩口罩遮面现身机场美丽动人,网友</span>
                            <br style="margin-top:10px;"/>
                        </div>
                    </div>
                    
                    <div class="div4">
                        <span><span style="color: red;margin-left: -5px;margin-right: 5px;">●</span>谁说TVB电视剧已经没有看头了,明明还有这</span>
                         <div style="width: 330px;height: 188px;">
                            <br/>
                            <span style="font-size: 15px;color: #B6B6BE;"><span style="font-size: 9px;color: #B6B6BE;margin-left: -1px;">●</span>63岁成龙和54岁李连杰的最大差距,9岁之差,</span>
                            <br/>
                            <span style="font-size: 15px;color: #B6B6BE;"><span style="font-size: 9px;color: #B6B6BE;margin-left: 4px;">●</span>【图】宋仲基个人资料一览 颜值演技并存的实力</span>
                            <br style="margin-top:10px;"/>
                            <span style="font-size: 15px;color: #B6B6BE;margin-left: -43px;"><span style="font-size: 9px;color: #B6B6BE;margin-left: -3px;">●</span>日系的帅哥是这个地球新生代高颜值物种</span>
                            <br style="margin-top:10px;"/>
                            <span style="font-size: 15px;color: #B6B6BE;"><span style="font-size: 9px;color: #B6B6BE;margin-left: 3px;">●</span>《甄嬛传》中小丫鬟?比赵薇还“学霸”, 章子</span>
                            <br style="margin-top:10px;"/>
                        </div>
                        <span><span style="color: red;margin-left: -5px;margin-right: 5px;">●</span>欧阳娜娜亲下厨 一盘蛋炒饭几乎看不到饭粒</span>
                         <div style="width: 330px;height: 188px;">
                            <br/>
                            <span style="font-size: 15px;color: #B6B6BE;"><span style="font-size: 9px;color: #B6B6BE;margin-left: -4px;">●</span>46岁小虎队陈志朋放飞自我!雷人造型有点“作</span>
                            <br/>
                            <span style="font-size: 15px;color: #B6B6BE;"><span style="font-size: 9px;color: #B6B6BE;margin-left: 3px;">●</span>周星驰出名的敬业,但《食神》这个镜头,还真</span>
                            <br style="margin-top:10px;"/>
                            <span style="font-size: 15px;color: #B6B6BE;"><span style="font-size: 9px;color: #B6B6BE;margin-left: 3px;">●</span>当红小生出道前后对比,鹿晗杨洋马天宇气质蜕</span>
                            <br style="margin-top:10px;"/>
                            <span style="font-size: 15px;color: #B6B6BE;"><span style="font-size: 9px;color: #B6B6BE;margin-left: 3px;">●</span>27岁林允儿出席活动大秀好身材,网友:受不了</span>
                            <br style="margin-top:10px;"/>
                        </div>
                    </div>
                    
                    <div class="div5">
                        <span style="margin-left: -240px;"><b>八方<i style="color: red;">爆料</i></b></span>
                        <table cellpadding="0px">
                            <tr>
                                <td class="td2">
                                <img onmousemove="fun(this)" onmouseout="fu1(this)" style="width: 150px;height: 100px" src="img/lst1.jpg" />    
                                </td>
                                <td class="td2">
                                    <img onmousemove="fun(this)" onmouseout="fu1(this)" style="width: 150px;height: 100px" src="img/lit2.jpg" />
                                </td>
                            </tr>
                            <tr style="margin-left: 10px;">
                                <td style="margin-top: -20px;">谢天谢地!我们曾遇到最好的歌,一听就</td>
                                <td>谢天谢地!我们曾遇到最好的歌,一听就</td>
                            </tr>
                        
                            <tr>
                                <td style="margin-top: -20px;">谢天谢地!我们曾遇到最好的歌,一听就</td>
                                <td class="td2">
                                <img onmousemove="fun(this)" onmouseout="fu1(this)" style="width: 150px;height: 100px" src="img/20171202014843_302bbb4a40adb154553f7e87a03c70e9_5_mwpm_05501609.jpg" />    
                                </td>
                                
                            </tr>
                            <tr style="margin-left: 10px;">
                                <td style="margin-top: -20px;">谢天谢地!我们曾遇到最好的歌,一听就</td>
                                <td class="td2"><img onmousemove="fun(this)" onmouseout="fu1(this)" style="width: 150px;height: 100px" src="img/20171202014742_8e383ae3fa7b30122d873623a43eea2c_1_mwpm_05501609.jpg" /></td>
                            </tr>
                            </table>
                    </div>
                </div>                
            </div>
        </center>
        <script type="text/javascript">
            window.onload=function(){
                var lc=document.getElementById("lc");
                lc.style.transform="scale(1.1)";
                lc.style.transition="all 2s"
                
            var ta=document.getElementById("ta");
            ta.onmousemove=function(){
                ta.style.background="red";
                ta.style.transform="scale(1.2)";
                ta.style.color="yellow";
                ta.style.transition="all 2s";
            }
            ta.onmouseout=function(){
                ta.style.background="white";
                ta.style.transform="scale(1)";
                ta.style.color="black";
                ta.style.transition="all 2s";
            }        
            }    
            function fun(a){
                var im2=document.getElementById("im2");
                var im=document.createElement("img");
                im.src="img/arrow-down-b.png";
                im.setAttribute("class","im1");
                im.setAttribute("id","im2");
                im.style.width="50px";
                im.style.height="50px";
                if(im2==null){
                a.parentNode.appendChild(im);
                }
             }
            function fu1(a){
                history.go(0);
             }
        </script>
    </body>
</html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值