网页小练习

html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>title>
    <link href="css/bootstrap.min.css" rel="stylesheet"/>
    <style rel="stylesheet">
        html {
            font-size: 62.5%;
        }
        .logo {
            margin-top: 10rem;
        }
        .bor {
            border: 1px solid red;
        }
        ul li {
            list-style: none;
        }
        .nav-1 li  {
            display: inline-block;
            width: 10rem;
            text-align: center;
            height: 3rem;
            padding-top: 1rem;
            font-size: 2.4rem;
            cursor: pointer;
        }
        .nav-1 li:hover {
            color: red;
        }
        .middle {
            width: 1364px;
            height: 499px;
            /*border: 1px solid red;*/
            overflow: hidden;
            z-index: 200;
            margin-top: 10rem;
        }
        .middle li {
            position: relative;
            display: inline-block;
        }
        .banner {
            /*width: 30rem;*/
            /*height: 15rem;*/
            /*border: 1px solid red;*/
            position: absolute;
            top: 210px;
            right: 20px;
            z-index: 100;
        }
        .banner strong {
            font-size: 4.3rem;
        }
        .banner em {
            font-size: 2.3rem;
            color: #444444;
        }
        .indent-bot {
            font-size: 3.3rem;
        }
        .foot-nav1 {
            display: inline-block;
            width: 4rem;
            height: 4rem;
            /*border: 1px  solid red;*/
            background: url('img/social-icons.png')0 0 no-repeat;
        }
        .foot-nav4 {
            display: inline-block;
            width: 4rem;
            height: 4rem;
            /*border: 1px  solid red;*/
            background: url('img/social-icons.png')-142px 0px no-repeat;
        }
        .foot-nav2 {
            display: inline-block;
            width: 4rem;
            height: 4rem;
            /*border: 1px  solid red;*/
            background: url('img/social-icons.png')-47px 0px no-repeat;
        }
        .foot-nav3 {
            display: inline-block;
            width: 4rem;
            height: 4rem;
            /*border: 1px  solid red;*/
            background: url('img/social-icons.png')-93px 0px no-repeat;
        }
        .ul-1 li {
            display: inline-block;
            margin-right: 1rem;
            margin-top: 5rem;
        }
        .ul-2  {
            margin-top: 5rem;
        }
        .ul-2 i {
            display: inline-block;
            width: 0;
            height: 0;
            margin-right: .5rem;
            border-bottom: 5px solid transparent;
            border-top: 5px solid transparent;
            border-right: 5px solid transparent;
            border-left: 5px solid red;
        }
        ul i:hover {
            transform: rotate(720deg);
            transform-origin: left center;
            transition-duration: 1s;
        }
        .ul-3  {
            margin-top: 5rem;
        }
        .ul-4  {
            margin-top: 5rem;
        }
        footer h5 {
            font-size: 2.3rem;
        }
    style>
head>
<body>
<div class="container">
<div class="row">
    <div class="col-md-4 col-sm-6 logo">
        <img src="img/logo.png"/>
    div>
    <div class="col-md-8 col-sm-6 logo nav-1">
      <ul>
          <li>homeli>
          <li>comparlyli>
          <li>servicesli>
          <li>clientsli>
          <li>contanctsli>
      ul>
    div>
div>
<div class="row">
<div class="middle col-md-12" id="middle">
    <ul>
        <li id="lun-1">
            
            <div class="banner">
                <strong>need <strong><br/>fresh ideas?strong><br/>strong>
                <em>Let’s create your company’s growth strategy together!em><br/>
                            <span class="button">
                               <a href="#"><strong>Read Morestrong>a>
                            span>
            div>
        li>
        <li id="lun-2">
            
            <div class="banner">
                <strong>need <strong><br/>fresh ideas?strong><br/>strong>
                <em>Let’s create your company’s growth strategy together!em><br/>
                            <span class="button">
                               <a href="#"><strong>Read Morestrong>a>
                            span>
            div>
        li>
        <li id="lun-3">
            
            <div class="banner">
                <strong>need <strong><br/>fresh ideas?strong><br/>strong>
                <em>Let’s create your company’s growth strategy together!em><br/>
                            <span class="button">
                               <a href="#"><strong>Read Morestrong>a>
                            span>
            div>
        li>
    ul>

div>
div>
    <div class="row">
        <div class="col-md-4 col-md-offset-2">
            <h1>NEWSh1>
            <div class="indent-bot">
                <time class="tdate-1" datetime="2015-12-24"><strong>24strong>dectime>
                <div class="extra-wrap">
                    <h6><a class="link" href="#">Ut enim ad minim veniam quis nostrud a>h6>
                    Exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
                div>
                <div class="clear">div>
            div>


            <div class="indent-bot">
                <time class="tdate-1" datetime="2011-12-24"><strong>24strong>dectime>
                <div class="extra-wrap">
                    <h6><a class="link" href="#">Ut enim ad minim veniam quis nostrud a>h6>
                    Exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
                div>
                <div class="clear">div>
            div>


            <div class="indent-bot">
                <time class="tdate-1" datetime="2011-12-24"><strong>24strong>dectime>
                <div class="extra-wrap">
                    <h6><a class="link" href="#">Ut enim ad minim veniam quis nostrud a>h6>
                    Exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
                div>
                <div class="clear">div>
            div>
            <button class="btn btn-danger btn-lg">click mebutton>
        div>
        <div class="col-md-6">
            <div class="indent-top">
                <div class="wrapper indent-bot2">
                    <figure class="img-indent"><img src="img/page1-img1.jpg" alt="">figure>
                    <div class="extra-wrap">
                        <h4>We Know <strong>What It Takesstrong><strong class="color-3">to be the <em>Leader!em>strong>h4>
                    div>
                div>
                <p class="p1">Wise Solutions is one of <a class="link" target="_blank" href="http://blog.templatemonster.com/free-website-templates/">free website templatesa> created by TemplateMonster.com team. This website template is optimized for 1280X1024 screen resolution. It is also XHTML & CSS valid.p>
                <p class="img-indent-bot">This <a class="link" target="_blank" href="http://blog.templatemonster.com/2011/01/03/free-website-template-jquery-slider-business-website/">Wise Solutions Templatea> goes with two packages – with PSD source files and without them. PSD source files are available for free for the registered members of TemplatesMonster.com. The basic package is available for anyone without registration.p>
            div>
            <button class="btn btn-danger btn-lg">click mebutton>
        div>
    div>
    <footer>
        <div class="row">
            <ul class="ul-1 col-md-3">
                <li><a href="javascript:void(0)" class="foot-nav1">a>li>
                <li><a href="javascript:void(0)" class="foot-nav2">a>li>
                <li><a href="javascript:void(0)" class="foot-nav3">a>li>
                <li><a href="javascript:void(0)" class="foot-nav4">a>li>
            ul>
            <ul class="ul-2 col-md-2">
                <h5>Navigationh5>
                    <li><i>i><a href="index.html">Homea>li>
                    <li><i>i><a href="company.html">Companya>li>
                    <li><i>i><a href="services.html">Servicesa>li>
                    <li><i>i><a href="clients.html">Clientsa>li>
                    <li><i>i><a href="contacts.html">Contactsa>li>
            ul>
            <ul class="ul-3 col-md-3">
                <h5>Contacth5>
                <dl>
                    <dt>2256 S Norfolk Street<br>Seattle, WA<br>98118-5648dt>
                    <dd><span>Phone:span>  217-764-7449dd>
                    <dd><span>Fax:span>  217-763-7912dd>
                dl>
            ul>
            <ul class="ul-4 col-md-3">
                <h5>Legalh5>
                <p >Wise Solutions © 2011p>
                <p ><a class="link" target="_blank" href="http://www.templatemonster.com/">Website Templatea>p>
                <p >by TemplateMonster.comp>
                <p >Professional free web templates <a href="http://www.baidu.com" target="_blank">at www.websitetemplatesonline.coma>. | <a href="http://www.flashtemplates.com/" title="Flash Templates">Flashtemplates.coma>. Flash Design - the Smart Choice.p>
            ul>
        div>

    footer>
div>
<script>
    var backgroundObj = document.getElementById('middle');
    var i = 0;
    backgroundObj.style.background = "url('img/slider-img1.jpg') no-repeat";
    var v =  setInterval(show, 1000);
    var arrImgs = ['./img/slider-img3.jpg', './img/slider-img2.jpg', './img/slider-img1.jpg'];
    function show() {
        backgroundObj.style.background = 'url('+ arrImgs[i] +') no-repeat';
        backgroundObj.style.zIndex= 1000;
        ++i;
        if(i == arrImgs.length) {
            i = 0;
        }
    }
script>
body>
html>

你可能感兴趣的:(前端)