南大软院大神养成计划第二十一天



代码来袭


<!DOCTYPE>

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

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312"

/>

<title>混合布局编程挑战</title>

</head>

<style type="text/css">

* {

            margin: 0;

            padding: 0;
        }


body {
            font-size: 12px;
            line-height: 1.7;
     

      background-color: #888;

 margin:0; padding:0; font-size:30px; color:#fff        }


.top{background-color:black;height:50px;}


.main{margin:auto;background-color:red;position:relative;}


.left{ background-color:blue;
float:left;width:200px;position:fixed;
top:100px;left:0; 
         
  }


.right{background-color:purple;float:right;     

width:1000px;margin: 0 auto;      padding-top: 100px;
           

padding-bottom: 300px;
                     }


.foot{background-color:orange;clear:both;height:50px;}


li {
            list-style: none;
        }


#content {
 }


      
         
.right .item{
            width: 100%;
            height: 540px;
     

      position: relative;
        }

       
.right .item img {
            position: absolute;
            top:

100px;
            left: 40px;
        }

      
.right #item1 {
            background: url

("http://img.mukewang.com/536c9f800001b28510000540.jpg") no-repeat

center top;
        }

       
.right #item2 {
            background: url

("http://img.mukewang.com/536c9ecd0001606d10000540.jpg") no-repeat

center top;
        }

       
.right #item3 {
            background: url

("http://img.mukewang.com/536c9f0a0001ccc310000540.jpg") no-repeat

center top;
        }

       
.right #item4 {
            background: url

("http://img.mukewang.com/536c9f6700012e9010000540.jpg") no-repeat

center top;
        }

       
.right #item5 {
            background: url

("http://img.mukewang.com/536c9f800001b28510000540.jpg") no-repeat

center top;
        }


     
          #menu{
}


       
.left h1 {
            color: #fff;
            font-size: 14px;
      

     text-align: center;
            background: #ee1111;
           

line-height: 30px;
        }

      
.left ul li a {
            display: block;
            margin: 5px

0;
            font-size: 12px;
            color: #ccc;
           

width: 160px;
            padding: 10px 20px;
            text-

decoration: none;
            text-align: left;
            border-

bottom: 1px dashed #999;
        }

       
.left ul li a strong {
            color: #f1f1f1;
        }

       

.left ul li a:hover,
       
.left ul li a.current {
            color: #fff;
           

background: #666;
        }


  <!--      /*ie6 hack*/
       
* html, * html body {
            background-image: url

(about:blank);
            background-attachment: fixed;
        }

    

* html #menu {

            /*position: fixed;*/

            position: absolute;
            top: expression

(((e=document.documentElement.scrollTop)?

e:document.body.scrollTop)+100+'px');
        }

-->


</style>



<script src="http://libs.baidu.com/jquery/1.10.2/jquery.js">
</script>

<script>

        $(document).ready(function () {
            $(window).scroll

(function () {

                var top = $(document).scrollTop();//获取当前位置
    

           var menu = $("#menu");

                var items = $("#content").find(".item");


// 导航菜单实现在滚动条滚动的时候自动设置焦点
                var

currentId = "";//当前所在楼层ID(item)
                items.each

(function(){//当前位置和每个楼层的位置比较
                    var m

= $(this);
                    var itemTop = m.offset().top;
         

          if(top > itemTop - 200){
                        currentId

= "#" + m.attr("id");//判断当前所在楼层
                    } else {
 

                      return false;
                    }
            

   })
 
                var currentLink = menu.find(".current");//找到

带有current属性的链接
                if(currentId &&

currentLink.attr("href") != currentId){//如果currentId为空或链接位置

已经是当前楼层则不执行
                    currentLink.removeClass

("current");//删除带有current属性的链接的current属性
                

   menu.find("[href=" + currentId + "]").addClass("current")//为当前

楼层的链接添加current属性
                }
 
            });

       

});
</script>
<body>

<div class="top">top</div>


<div class="main">


    <div class="left">


<h1>正在首发</h1>

<ul>
<li>
<a href="#item1" class="current">
<strong>2014.04.09</strong><br>施华蔻0元赢Smart</a></li>
<li>
<a href="#item2">
<strong>2014.04.05</strong><br>alienware机皇限量抢</a></li>
<li>
<a href="#item3">
<strong>2014.04.04</strong><br>联想Miix2 3G平板电脑</a></li>
<li>
<a href="#item4">
<strong>2014.04.03</strong><br>御爵厨房垃圾处理器</a></li>
<li>
<a href="#item5">
<strong>2014.04.01</strong><br>中兴天机GRAND S II</a></li>
</ul>
</div>


    <div class="right">

<div id="item1" class="item"><img

src="http://img.mukewang.com/536ca02800014e7105000400.jpg">
</div>
<div id="item2" class="item">
<img

src="http://img.mukewang.com/536ca04b0001dbeb04520519.jpg">
</div>
<div id="item3" class="item">
<img

src="http://img.mukewang.com/536ca06200016a4d03950387.jpg">
</div>
<div id="item4" class="item">
<img

src="http://img.mukewang.com/536ca0ab0001c89205000400.jpg">
</div>
<div id="item5" class="item">
<img

src="http://img.mukewang.com/536ca0830001b17f05000400.jpg">
</div>
</div>


</div>

<div class="foot">foot</div>


</body>

</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: 南大软院机试是指南京大学软件学院进行的选拔性考试,主要用于选拔优秀的计算机科学与技术专业学生。而CSDN是中国最大的IT技术社区和知识服务平台,提供大量的技术博客、问答、培训等服务。 南大软院机试的题目通常包括计算机基础知识、编程能力、数据结构与算法等内容。通过机试,南大软院可以了解考生的基础知识水平、动手能力和解决问题的能力,从而选拔出最优秀的学生。 而CSDN作为一个IT技术社区,为计算机科学与技术专业的学生和从业者提供了一个优质的学习和交流平台。在CSDN上,可以浏览到大量的技术博客,以及相关技术问题的解决方案。通过参与CSDN,学生们能够及时了解最新的技术动态和行业发展趋势,提升自己的技术实力。 因此,南大软院机试和CSDN都在不同层面上为计算机科学与技术专业的学生提供了有益的机会和资源。通过参加南大软院机试,学生们有机会进一步提升自己的编程和解决问题的能力,从而在未来的学习和工作中更加出色。而通过参与CSDN,学生们可以在该平台上获取到丰富的技术资源,并与其他志同道合的人进行交流和学习,以更好地提升自己的专业水平。 ### 回答2: 南京大学软件学院机试是指南京大学软件学院举办的面向计算机科学与技术专业的机器编程实践能力考试。在这场机试中,考生需要完成一系列的编程题目,以展示他们的编程能力和解决问题的能力。 南京大学软件学院的机试一般分为两个部分:编程题和理论题。编程题部分会考察考生在数据结构、算法和编程语言等方面的知识,要求考生用编程语言解决一定的问题,例如实现某个算法或数据结构,或者完成一道编程题目。理论题部分则考察考生对计算机科学基础知识的掌握程度,包括计算机网络、操作系统、数据库等。 南京大学软件学院举办机试的目的是为了选拔具有较强编程能力和解决实际问题能力的学生,以便保证学院培养出的学生具备扎实的专业知识和实践能力。机试成绩在考生的综合素质评定中占有重要的比重,对考生的录取结果有着直接的影响。 参加南京大学软件学院机试的考生应该具备良好的计算机编程基础知识,对数据结构和算法有深入的理解,同时还需要具备良好的解决问题和编程能力。对于准备参加机试的考生来说,平时要多进行编程练习,多从理论和实践两方面进行复习。 总之,南京大学软件学院机试是一个重要的考核环节,对考生的编程实践能力和解决问题的能力进行了全面的评估。参加机试的考生应该充分准备,以取得良好的成绩。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值