无标题文章




    
    
    从psd到html练习
    
    


    

    

resto restaurant home page website template

The Menu

load more|

Featured Dishes

  • Fugadfasdfiat nulla sint

    $30

  • Fugiat nulla sint

    $30

  • Fugiat nulla sint

    $30

  • Fugiat nulla sint

    $30

The Gallery

.com-width{width: 1100px; height: 100%; margin:0 auto; }
a:hover{text-decoration: underline; cursor: pointer;}
/*头部*/
.public-header{height: 70px; background-color: #FFF; padding-top: 40px;}
.public-header .index-header-logo{float: left; width: 181px; height: 54px; background: url(../img/index-header-logo.png) left center no-repeat; }
.public-header .index-header-nav{float: right;}
.public-header .index-header-nav li{float: left; margin-left: 50px;}
.public-header .index-header-nav a{font: 12px/30px "Georgia"; color: #3b3b3b;}

/*底部*/
.public-footer{width: 100%; padding-bottom: 112px; background-color: #3b3b3b;}
.public-footer .footer-cont{padding-top: 90px; overflow: hidden;}
.public-footer .footer-col-wrap{width: 1160px;}
.public-footer .footer-col{width: 230px; float: left; margin-right: 60px; font: 16px/30px "Georgia"; color: #ebebeb;}
.public-footer .footer-col a{color: #ebebeb;}
.public-footer .footer-logo{width: 182px; height: 55px; background: url(../img/index-footer-logo.png) center center no-repeat; margin-top: -16px;}

/*index-banner*/
.index-banner{
    position: relative;

    width: 100%;
    height: 570px;
    border-bottom: 4px solid #f34949;

    background: url(../img/index-banner-bg.png) center center no-repeat;
    background-size: 100%;
    background-color: #3f3f3f;
    //IE8及以下专属滤镜
    filter: alpha(opacity=40);
    -khtml-opcity: .4;
    -webkit-opcity: .4;
    -moz-opacity: .4;
    opacity: .4;

}

.index-banner .index-banner-logo{
    position: absolute;
    top: 45%;
    left: 50%;
    -webkit-transform: translate(-50%, -70%);
       -moz-transform: translate(-50%, -70%);
        -ms-transform: translate(-50%, -70%);
         -o-transform: translate(-50%, -70%);
            transform: translate(-50%, -70%);

    width: 776px;
    height: 117px;

    background: url(../img/index-banner-logo.png) center center no-repeat;
    background-size: 100%;

}

.index-banner .index-banner-title{
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -20%);
       -moz-transform: translate(-50%, -20%);
        -ms-transform: translate(-50%, -20%);
         -o-transform: translate(-50%, -20%);
            transform: translate(-50%, -20%);

    color: #FFF;
}

.index-banner .index-banner-title-decoration{
    margin-left: 25px;
    margin-right: 25px;
    margin-bottom: 3px;

    display: inline-block;
    width:40px;
    height: 2px;

    border-bottom: 1px solid #2E2E2E;
}

/*index-menu*/
.index-menu .index-menu-title{
    margin-left: 472px;
    width: 156px;
    height: 50px;
    padding-top: 20px;
    margin-bottom: 80px;

    background-color: #f34949;
    color: #FFF;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.index-menu .index-menu-title:after{
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 24px solid #fff;
}

.index-menu .menu-list-item{
    display: inline-block;
    width: 520px;
    font-family: "Tahoma";
    font-size: 16px;
    margin-bottom: 52px;
}

.menu-list-item:nth-of-type(2n + 1){
    float: left;
}

.menu-list-item:nth-of-type(2n){
    float: right;
}


.index-menu .name{
    display: inline-block;
    width: 230px;
}

.index-menu .comment{

    font-size: 12px;
    line-height:28px;
    color:#b7b7b7;
}

.index-menu .decoration-line{
    margin-bottom: 20px;
    margin-right: 40px;
    display: inline-block;
    width: 192px;
    height: 1px;
    border-bottom: 1px solid #e3e1e1;
}

.index-menu .price{
    top: -15px;
    position: relative;
    display: inline-block;
}

/*load more*/
.index-menu .index-menu-loadmore{
    margin-left:482px;
     margin-bottom: 80px;
    padding-left: 16px;
    width: 116px;
    height: 34px;

    border: 1px solid #E1E0E0;
    color: #8F8F8F;
    font: 14px/34px "Myriad Pro";

    background: url(../img/index-loadmore-sharp.png) 110px center no-repeat;
}

.index-menu .index-menu-loadmore .separator{
     margin-left: 16px;
}

/*index-panner*/
.index-panner{
    margin-bottom: 200px;
}

.index-panner .title-box{
    margin-bottom: 120px;
}
.index-panner .title{
    display: inline-block;
    width: 230px;

    font: 20px/20px "Aleo";
    font-weight: bold;
}

.index-panner .decoration-line{
    display: inline-block;
    width: 184px;

    border: .1px solid #C7C7C7;
    margin-bottom: 4px;
}

.index-panner .img-index{
    float: right;
}

.index-panner .item-index{
    float: left;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #B8B8B8;
    margin-left: 4px;
}

.index-panner .active{
    background-color: #7F7F7F
}

/*index-panner product*/
.index-panner .product{
    width: 1164px;
    overflow: hidden;
}
.index-panner .product-itme-1{
    width: 231px;
    float: left;
    margin-right: 60px;
}

.index-panner .product-img{
    width: 231px;
    height: 202px;
}
.index-panner .product1 {
    background: url(../img/index-panner-product1.png) center center no-repeat;
}

.index-panner .product2 {
    background: url(../img/index-panner-product2.png) center center no-repeat;
}
.index-panner .product3 {
    background: url(../img/index-panner-product3.png) center center no-repeat;
}
.index-panner .product4 {
    background: url(../img/index-panner-product4.png) center center no-repeat;
}
.index-panner .product-description{
    font: 16px/30px "Tahoma";
    color:#555555;
    margin-top: 18px;
}

.index-panner .product-name{
    float: left;
}

.index-panner .product-price{
    float: right;
}

.index-panner .product-com{
    margin-top: 50px;
    background-color: pink;
}
.index-panner .start{
    float: left;
    margin-right: 5px;

    width: 13px;
    height: 13px;
    background: url(../img/index-panner-start.png) center center no-repeat;
}


.index-panner .product-left{
    float: left;
    width: 353px;
    height: 382px;
    background: url(../img/index-panner-item2-left.png) left center no-repeat;
}

.index-panner .product-center{
    float: left;
}
.index-panner .product-center-up{
    width: 287px;
    height: 251px;
    background: url(../img/index-panner-item2-center-1.png) center center no-repeat;
}

.index-panner .product-center-down{
    width: 287px;
    height: 206px;
    background: url(../img/index-panner-item2-center-2.png) center center no-repeat;
    margin-top: -75px;
}

.index-panner .product-right{
    float: left;
    width: 460px;
    height: 381px;
    background: url(../img/index-panner-item2-right.png) right center no-repeat;
}


你可能感兴趣的:(无标题文章)