how2j.cn

示例 1 : 效果   
示例 2 : 代码   

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <html> <head> <script src="https://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script> <link href="https://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet"> <script src="https://how2j.cn/study/js/bootstrap/3.3.6/bootstrap.min.js"></script> <style> .show { border: 1px dotted skyblue !important; } body { font-size: 12px; font-family: Arial; min-width:1024px; } a { color: #999; } a:hover { text-decoration: none; color: #C40000; } nav.top { padding-top: 5px; padding-bottom: 5px; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #e7e7e7; } .redColor { color: #C40000; } .boldWord { font-weight: bold; } nav.top span { margin-right: 20px; } nav.top span, nav.top a { color: #999; margin: 0px 10px 0px 10px; } nav.top a:hover { color: #C40000; } nav.top { background-color: #f2f2f2; } nav.top div.row div { margin: 5px 0px; } nav.top div.row div { background-color: lightgray; border: 1px solid gray; text-align: center; } div.searchDiv { background-color: #C40000; width: 400px; margin: 50px auto; padding: 1px; height: 40px; display: block; } div.searchDiv input { width: 275px; border: 1px solid transparent; height: 36px; margin: 1px; outline:none; } div.searchDiv button { width: 110px; border: 1px solid transparent; background-color: #C40000; color: white; font-size: 20px; font-weight: bold; } div.categoryWithCarousel { width: 100%; position:relative; } div.carouselBackgroundDiv{ width:100%; height:510px; background-color: #E8E8E8; position: absolute; top:36px; z-index:-1; } div.categoryWithCarousel div.headbar { background-color: #DD2727; } div.carousel-of-product { width: 1024px; height: 510px; margin:0px auto; } div.carousel-inner div.item img{ } div.categoryWithCarousel div.categoryMenu { width: 200px; background-color: #e2e2e3; margin-left: 20px; position: absolute; left: 0; top: 0; z-index: 1; } div.categoryWithCarousel div.productsAsideCategorys { width: 825px; height: 510px; background-color: white; margin-left: 220px; display: none; position: absolute; left: 0; top: 0; z-index: 1; } div.categoryWithCarousel div.eachCategory:hover { background-color: white; } div.categoryWithCarousel div.eachCategory span { margin-right: 10px; } div.categoryWithCarousel div.eachCategory { line-height: 30px; padding-left: 10px; font-size: 14px; } div.categoryWithCarousel div.rightMenu { display: inline-block; } div.categoryWithCarousel div.rightMenu img { height: 30px; } div.categoryWithCarousel div.rightMenu span { margin: 0px 20px 0px 20px; } div.categoryWithCarousel div.rightMenu a { font-size: 16px; color: white; } div.categoryWithCarousel div.head { width: 200px; background-color: #C60A0A; height: 36px; line-height: 36px; font-size: 16px; font-weight: bold; color: white; margin-left: 20px; display: inline-block; } div.productsAsideCategorys a { color: #999; font-size: 14px; margin: 8px; } div.productsAsideCategorys a:hover { color: #C40000; text-decoration: none; } div.productsAsideCategorys div.row { margin: 20px 80px 0px 80px; } div.productsAsideCategorys div.row div.seperator { margin-top: 20px; border-bottom-style: dashed; border-bottom-width: 1px; border-bottom-color: #e7e7e7; } div.categoryMenu a { color: #000; } div.categoryMenu a:hover { color: lightskyblue; text-decoration: none; } div.searchBelow span { color: #999; } div.searchBelow { margin-top: 3px; margin-left: -20px; } div.searchBelow a { padding: 0px 20px 0px 20px; font-size: 14px; } div.homepageDiv{ position:relative; } img.catear { position: absolute; height: 15px; display: none; } img.logo { position: absolute; left: 0px; top: 30px; } div.homepageCategoryProducts { background-color: #F5F5F5; padding: 50px 10px 50px 10px; margin: 10px auto; max-width: 1013px; } div.left-mark { display: inline-block; height: 20px; vertical-align: top; width: 5px; background-color: #19C8A9; } span.categoryTitle { font-size: 16px; margin-left: 30px; color: #646464; font-weight: bold; } div.productItem { width: 189px; height: 285px; border: 1px solid white; background-color: white; margin: 8px 4px; float: left; cursor: pointer; } a.productItemDescLink { display: inline-block; height: 66px; } div.productItem:hover { border: 1px solid #C40000; } div.productItem span.productItemDesc { font-size: 12px; color: #666666; display: block; padding: 16px; } div.productItem span.productPrice { font-size: 16px; color: #FF003A; display: block; padding-left: 16px; margin-top: -10px; } div.eachHomepageCategoryProducts { margin: 0px 0px 40px 0px; } div.productItem img { width: 187px; height: 190px; } div.productItem img:hover { opacity: 0.7; filter: alpha(opacity = 70); } img.endpng { display: block; width: 82px; margin: 0 auto; } div.footer { margin: 0px 0px; border-top-style: solid; border-top-width: 1px; border-top-color: solid; border-top-color: #e7e7e7; } div.footer_ensure { margin-top: 24px; margin-bottom: 24px; text-align: center; } div.footer_desc { border-top-style: solid; border-top-width: 1px; border-top-color: #e7e7e7; padding-top: 30px; margin: 0px 20px; } div.footer div.copyright div.white_link a { color: white; padding: 0px 5px; } div.footer div.copyright div.white_link { padding: 10px 0px; margin-left: 10px; } div.footer_desc div.descColumn { width: 20%; float: left; padding-left: 15px; } div.footer_desc div.descColumn span.descColumnTitle { color: #646464; font-weight: bold; font-size: 16px; } div.footer_desc a { display: block; padding-top: 3px; } div.copyright { background-color: black; border-top-style: solid; border-top-width: 2px; border-top-color: solid; border-top-color: #C40000; } img.cateye { margin-left: 20px; } div.copyright span.slash { color: white; } div.license { margin-left: 10px; padding-bottom: 30px; } div.license div.copyRightYear { margin: 10px 0px; color: #686868; } div.license span { color: #A4A4A4; } div.simpleLogo { padding: 32px 0px; } img.loginBackgroundImg { display: block; margin: 0px auto; } div.loginDivInProductPageModalDiv { width: 350px; } div.deleteConfirmModalDiv { width: 350px; } div.loginDivInProductPage { background-color: white; width: 350px; height: 400px; padding: 60px 25px 80px 25px; } div.loginSmallDiv { background-color: white; position: absolute; right: 180px; top: 180px; width: 350px; height: 400px; padding: 60px 25px 80px 25px; } div.loginErrorMessageDiv { width: 300px; position: absolute; top: 20px; display: none; } div.loginErrorMessageDiv div.alert { padding: 5px !important; } div.login_acount_text { color: #3C3C3C; font-size: 16px; font-weight: bold; } div.loginInput { border: 1px solid #CBCBCB; margin: 20px 0px; } div.loginInput input { display: inline-block; border: 0px solid transparent; width: 244px; height: 30px; position: relative; left: 6px; top: 6px; } div.loginInput span, div.loginInput input { display: inline-block; } div.loginInput span.loginInputIcon { margin: 0px; background-color: #CBCBCB; width: 40px; height: 40px; } span.loginInputIcon span.glyphicon { font-size: 22px; position: relative; left: 9px; top: 9px; color: #606060; } button.redButton { color: white; background-color: #C40000; font-size: 14px; font-weight: bold; } div.categorySortBar { background-color: #FAF9F9; margin: 40px 20px 20px 20px; padding: 4px; } table.categorySortBarTable td { border: 1px solid #CCCCCC; padding: 3px; height: 23px; } table.categorySortBarTable { border-collapse: collapse; display: inline-table; } table.categorySortBarTable td a { color: #806F66; font-size:12px; } table.categorySortBarTable td a:hover { color: #C40000; } table.categorySortBarTable td.grayColumn { background-color: #F1EDEC; } table.categorySortBarTable td.priceMiddleColumn { width: 10px; vertical-align: middle; color: #CCCCCC; } table.categorySortTable td:hover { background-color: #F1EDEC; } table.categorySortBarTable span.glyphicon { font-size: 10px; } table.categorySortBarTable input { border-width: 0px; height: 100%; width: 50px; font-size:12px; } div.categoryProducts { padding: 0px 20px 40px 20px; } div.productUnit { width: 225px; height: 338px; border: 3px solid #fff; background-color: white; margin: 12px 5px; float: left; padding: 0px; } div.productUnit:hover { width: 225px; border: 3px solid #C40000; padding: 0px; } div.productUnit span.productUnitDesc { font-size: 12px; color: #666666; display: block; padding: 16px; } div.productUnitFrame{ border:1px solid #eee; } div.productUnitFrame:hover{ border:1px solid #C40000; } div.productUnit span.productPrice { font-size: 20px; color: #CC0000; display: block; padding-left: 4px; } div.productUnit span.productReview { border-left-width: 1px; border-left-style: solid; border-left-color: #EEEEEE; border-right-width: 1px; border-right-style: solid; border-right-color: #EEEEEE; } div.productUnit a.productLink { margin: 10px 0px; color: #333333; font: 0.8em; display: block; } div.productUnit a.productLink:hover { text-decoration: underline; color: #C40000; } div.productUnit a.tmallLink { margin: 10px 0px; color: #999999; font: 0.8em; display: block; text-decoration: underline; } div.productUnit a.tmallLink:hover { text-decoration: underline; color: #C40000; } div.productUnit div.productInfo { color: #999999; } div.productUnit span.monthDeal, div.productUnit span.productReview { display: inline-block; width: 90px; height: 30px; padding-top: 5px; padding-left: 5px; } div.productUnit span.wangwang { padding-left: 3px; } div.productUnit span.productDealNumber { font-weight: bold; color: #B57C5B; } div.productUnit span.productReviewNumber { font-weight: bold; color: #3388BB; } div.productUnit img.productImage { width: 100%; height: 190px; } div.productUnit div.productInfo { border-top-width: 1px; border-top-style: solid; border-top-color: #EEEEEE; } img.simpleLogo { position: absolute; left: 10px; top: 50px; width: 140px; } div.simpleSearchDiv { background-color: #C40000; width: 300px; margin: 10px 20px 40px; padding: 1px; height: 40px; display: block; } div.simpleSearchDiv input { width: 225px; border: 1px solid transparent; height: 34px; margin: 2px; outline:none; } div.simpleSearchDiv button { width: 60px; border: 1px solid transparent; background-color: #C40000; color: white; font-size: 14px; } div.imgAndInfo { margin: 40px 20px; } div.imgAndInfo img.bigImg { width: 400px; height: 400px; padding: 20px; border: 1px solid #F2F2F2; } div.imgAndInfo div.smallImageDiv { width: 80%; margin: 20px auto; } div.imgAndInfo img.smallImage { width: 60px; height: 60px; border: 2px solid white; } div.imgAndInfo img.smallImage:hover { border: 2px solid black; } div.imgInimgAndInfo { width: 400px; float: left; } div.infoInimgAndInfo { padding: 0px 20px; overflow: hidden; } div.infoInimgAndInfo div.productTitle { color: black; font-size: 16px; font-weight: bold; margin: 0px 10px; } div.infoInimgAndInfo div.productSubTitle { color: #DD2727; font-size: 12px; margin: 0px 10px; } div.infoInimgAndInfo div.juhuasuan { background-color: #2DA77A; color: white; text-align: center; line-height: 40px; margin-top: 10px; } div.infoInimgAndInfo span.juhuasuanBig { font-size: 18px; font-weight: bold; font-family: Arial; } div.infoInimgAndInfo span.juhuasuanTime { color: #FFC057; font-weight: bold; } div.infoInimgAndInfo div.gouwujuanDiv { margin-top: 5px; } div.infoInimgAndInfo div.originalDiv { margin-top: 5px; } div.infoInimgAndInfo div.promotionDiv { margin-top: 0px; } div.infoInimgAndInfo div.productPriceDiv { background-image: url(https://how2j.cn/tmall/img/site/priceBackground.png); height: 102px; padding: 10px; color: #666666; } div.infoInimgAndInfo span.originalPriceDesc { color: #999999; display: inline-block; width: 68px; } div.infoInimgAndInfo span.promotionPriceDesc { color: #999999; display: inline-block; width: 68px; position: relative; left: 0px; top: -10px; } div.infoInimgAndInfo span.originalPriceYuan { font-family: Arial; font-size: 12px; } div.infoInimgAndInfo span.originalPrice { font-family: Arial; font-size: 12px; color: #333333; text-decoration: line-through; } div.infoInimgAndInfo span.promotionPriceYuan { font-family: Arial; font-size: 18px; color: #C40000; } div.infoInimgAndInfo span.promotionPrice { color: #c40000; font-family: Arial; font-size: 30px; font-weight: bold; } div.infoInimgAndInfo div.productSaleAndReviewNumber { margin: 20px 0px; border-top-style: dotted; border-top-color: #C9C9C9; border-top-width: 1px; border-bottom-style: dotted; border-bottom-color: #C9C9C9; border-bottom-width: 1px; padding: 10px; } div.infoInimgAndInfo div.productSaleAndReviewNumber div { display: inline-block; width: 49%; text-align: center; color: #999999; font-size: 12px; } div.infoInimgAndInfo div.productSaleAndReviewNumber div:first-child { border-right-width: 1px; border-right-style: solid; border-right-color: #E5DFDA; } div.infoInimgAndInfo div.productNumber { color: #999999; } div.infoInimgAndInfo span.productNumberSettingSpan { border: 1px solid #999; display: inline-block; width: 43px; height: 32px; padding: 7px 0; } div.infoInimgAndInfo input.productNumberSetting { border: 0px; height: 80%; width: 80%; } div.productNumber span.glyphicon { font-size: 6px; } div.productNumber span.arrow { display: inline-block; width: 22px; height: 32px; vertical-align:top; } div.productNumber span.updown img{ display:inline-block; vertical-align:top; } div.productNumber span.updown { border: 1px solid #999; display: block; width: 20px; height: 14px; text-align: center; padding-top:4px; } div.productNumber span.updownMiddle { height: 4px; display: block; } div.serviceCommitment { margin: 20px 0px; } div.infoInimgAndInfo span.serviceCommitmentDesc { color: #999999; } div.infoInimgAndInfo span.serviceCommitmentLink a { color: #666666; } div.productDetailDiv { width: 790px; margin: 40px auto; } div.productReviewDiv { width: 790px; margin: 40px auto; } div.productReviewContentPart { padding-top: 50px; } div.productDetailTopPart { border: 1px solid #DFDFDF; border-left-width: 0px; } div.productReviewTopPart { border: 1px solid #DFDFDF; } div.productParamterPart { border: 1px solid #DFDFDF; padding: 40px; } div.productParamter { color: #999999; font-weight: bold; margin-bottom: 20px; } div.productParamterList span { display: block; width: 220px; float: left; padding: 8px 0px; color: #666666; } a.selected { border-left: 1px solid #cfbfb1; border-right: 1px solid #cfbfb1; color: #b10000; display: inline-block; font-weight: bold; line-height: 46px; width: 90px; text-align: center; position: relative; } a.selected:after { border-color: #b00000 transparent transparent; border-style: solid; border-width: 5px; content: ""; display: block; width: 0; height: 0; position: absolute; top: -1px; left: 50%; margin-left: -5px; } a.selected:before { border-color: #b00000; border-style: solid; border-width: 1px; content: ""; display: block; width: 90px; height: 0; position: absolute; top: -1px; margin-left: -1px; } a.productDetailTopReviewLink { padding: 0px 20px; border-right: 1px dotted #D2D2D2; color: #333333; } span.productDetailTopReviewLinkNumber { color: #3355B9; } span.productReviewTopReviewLinkNumber { color: #3355B9; } div.productDetailImagesPart img { display: block; margin 20px 0px; width: 790px; } a.productReviewTopPartSelectedLink { padding: 0px 20px; color: #333333; } div.productReviewItem { border-bottom: 1px solid #E3E3E3; margin: 10px 0px; } div.productReviewItem div.productReviewItemDesc { width: 80%; display: inline-block; color: #333333; height: 94px; margin: 5px 20px; float: left; } div.productReviewItem div.productReviewItemUserInfo { color: #404040; margin: 5px 20px; overflow: hidden; padding: 20px 0; } div.productReviewItemContent { } div.productReviewItemDate { margin: 15px 0px 0px 0px; color: #CCCCCC; } span.userInfoGrayPart { color: #999999; } div.productReviewDiv { display: none; } div.buyPageDiv { margin: 20px auto; max-width: 1013px; } div.buyDiv { margin: 20px auto; text-align: center; } div.buyPageDiv button { display: inline-block; margin: 0px 10px; width: 180px; height: 40px; } div.buyDiv button { display: inline-block; margin: 0px 10px; width: 180px; height: 40px; } button.buyButton { border: 1px solid #C40000; background-color: #FFEDED; text-align: center; line-height: 40px; font-size: 16px; color: #C40000; font-family: arial; } button.addCartButton { border: 1px solid #C40000; background-color: #C40000; text-align: center; line-height: 40px; font-size: 16px; color: white; font-family: arial; } button.addCartButton span.glyphicon { font-size: 12px; margin-right: 8px; } div.address { margin: 20px 5px; text-align: left; } div.addressTip, div.productListTip { color: #333333; font-size: 16px; font-weight: bold; text-align: left; margin-bottom: 30px; } table.addressTable { margin: 20px 20px; width: 600px; } table.addressTable td.firstColumn { width: 100px; } table.addressTable td { color: #333333; text-align: right; vertical-align: top; padding-right: 5px; text-align: left; height: 30px; font-size:12px; } span.redStar { color: red; font-size: 8px; } table.addressTable td input { border: 1px solid #AFAFAF; width: 200px; } table.addressTable td textarea { border: 1px solid #AFAFAF; margin-bottom: 10px; width: 400px; } img.tmallbuy { width: 15px; } a.marketLink { color: black; font-size: 12px; font-family: Arial; font-weight: normal; } a.marketLink:hover { color: black; font-size: 12px; text-decoration: underline; font-family: Arial; font-weight: normal; } span.wangwangGif { display: inline-block; width: 25px; height: 25px; background-image: url(https://how2j.cn/tmall/img/site/wangwang.gif); background-repeat: no-repeat; background-color: transparent; background-attachment: scroll; background-position: -83px -0px; position: relative; top: 8px; left: 2px; } table.productListTable { width: 100%; border-collapse: separate; } table.productListTable th { color: #999999; font-family: Arial; font-weight: normal; font-size: 12px; text-align: center; padding-bottom: 5px; } th.productListTableFirstColumn { text-align: left !important; } table.productListTable tr.rowborder td { background-color: #b2d1ff; border-right: 2px solid #fff; height: 3px; } img.orderItemImg { width: 50px; height: 50px; border: 1px solid #E9E9E9; } tr.orderItemTR td { padding: 10px 0px; } a.orderItemProductLink { color: #666666; display: block; } a.orderItemProductLink:hover { color: #666666; text-decoration: underline; } td.orderItemProductInfo { text-align: left; } td.orderItemProductInfo img { height: 16px; } span.orderItemProductPrice, span.orderItemProductNumber { color: #000000; } span.orderItemUnitSum { color: #CC0000; font-weight: bold; } tr.orderItemTR td { border-bottom: 1px solid #E5E5E5; } tbody.productListTableTbody td { text-align: center; font-size:12px; } tbody.productListTableTbody td.orderItemFirstTD { text-align: left; } tbody.productListTableTbody td.orderItemProductInfo { text-align: left; } td.orderItemFirstTD, td.orderItemLastTD { border-bottom: 0px solid black !important; } label.orderItemDeliveryLabel { color: #666666; font-family: Arial; font-size: 12px; font-weight: normal; } select.orderItemDeliverySelect { width: 100px; height: 23px; } div.orderItemSumDiv span { color: #999999; } div.orderItemSumDiv { padding: 20px; border-top: 2px solid #B4D0FF; background-color: #F2F6FF; height: 50px; } textarea.leaveMessageTextarea { border: 1px solid #FFAD35; width: 250px; height: 60px; resize: none; } span.leaveMessageText { display: inilne-block; margin-right: 10px; float: left; } span.leaveMessageTextareaSpan { display: inilne-block; } div.orderItemTotalSumDiv { margin: 40px; height: 40px; } div.orderItemTotalSumDiv span { color: #999999; } span.orderItemTotalSumSpan { color: #C40000 !important; font-size: 22px; font-weight: bold; border-bottom: 1px dotted #F2F6FF; } div.submitOrderDiv { height: 40px; margin: 20px 0px; } button.submitOrderButton { border: 1px solid #C40000; background-color: #C40000; text-align: center; line-height: 40px; font-size: 14px; font-weight: 700; color: white; float: right; } div.aliPayPageLogo { margin: 20px; } div.aliPayPageDiv { text-align: center; padding-bottom: 40px; max-width: 1013px; margin: 10px auto; } span.confirmMoneyText { color: #4D4D4D; } span.confirmMoney { display: block; color: #FF6600; font-weight: bold; font-size: 20px; margin: 10px; } img.aliPayImg { } button.confirmPay { background-color: #00AAEE; border: 1px solid #00AAEE; text-align: center; line-height: 31px; font-size: 14px; font-weight: 700; color: white; width: 107px; margin-top: 20px; } div.payedDiv { border: 1px solid #D4D4D4; max-width: 1013px; margin: 10px auto 20px auto; } div.payedTextDiv { height: 61px; background-color: #ECFFDC; padding: 17px 0px 0px 25px; } div.payedTextDiv span { font-weight: bold; font-size: 14px; margin-left: 10px; } div.payedAddressInfo { padding: 26px 35px; } div.payedAddressInfo li { background-image: url("https://how2j.cn/tmall/img/site/li_dot.png"); background-repeat: no-repeat; background-color: transparent; background-attachment: scroll; background-position: 0px 13px; list-style-type: none; color: #333333; padding-left: 15px; padding-top: 5px; } span.payedInfoPrice { color: #B10000; font-weight: bold; font-size: 14px; font-family: arial; } a.payedCheckLink { color: #2D8CBA; } a.payedCheckLink:hover { color: #2D8CBA; text-decoration: underline; } div.paedCheckLinkDiv { margin-left: 38px; } div.payedSeperateLine { border-top: 1px dotted #D4D4D4; margin: 0px 31px; } div.warningDiv { margin: 23px 45px; } div.warningDiv { color: black; } div.cartDiv { max-width: 1013px; margin: 10px auto; color: black; } span.cartTitlePrice { color: #C40000; font-size: 14px; font-weight: bold; margin-left: 5px; margin-right: 3px; } div.cartTitle button { background-color: #AAAAAA; border: 1px solid #AAAAAA; color: white; width: 53px; height: 25px; border-radius: 2px; } table.cartProductTable { width: 100%; font-size:12px; } table.cartProductTable th { font-weight: normal; color: #3C3C3C; padding: 20px 20px; } img.cartProductImg { padding: 1px; border: 1px solid #EEEEEE; width: 80px; height: 80px; } a.cartProductLink { color: #3C3C3C; } a.cartProductLink:hover { color: #C40000; text-decoration: underline; } div.cartProductLinkOutDiv { position: relative; height: 80px; } div.cartProductLinkInnerDiv { position: absolute; bottom: 0; height: 20px; } tr.cartProductItemTR td { padding: 20px 20px; } tr.cartProductItemTR { border: 1px solid #CCCCCC; } span.cartProductItemOringalPrice { text-decoration: line-through; color: #9C9C9C; display: block; font-weight: bold; font-size: 14px; } span.cartProductItemPromotionPrice { font-family: Arial; font-size: 14px; font-weight: bold; color: #C40000; } span.cartProductItemSmallSumPrice { font-family: Arial; font-size: 14px; font-weight: bold; color: #C40000; } div.cartProductChangeNumberDiv { border: solid 1px #E5E5E5; width: 80px; } div.cartProductChangeNumberDiv input { border: solid 1px #AAAAAA; width: 42px; display: inline-block; } div.cartProductChangeNumberDiv a { text-decoration: none; } div.cartProductChangeNumberDiv a { width: 14px; display: inline-block; text-align: center; color: black; text-decoration: none; } img.cartProductItemIfSelected, img.selectAllItem { cursor: pointer; } div.cartFoot { background-color: #E5E5E5; line-height: 50px; margin: 20px 0px; color: black; padding-left: 20px; } span.cartSumNumber { color: #C40000; font-weight: bold; font-size: 16px; } span.cartSumPrice { color: #C40000; font-weight: bold; font-size: 20px; } div.cartFoot button { background-color: #AAAAAA; border: 0px solid #AAAAAA; color: white; height: height%; width: 120px; height: 50px; font-size: 20px; text-align: center; } div.boughtDiv { max-width: 1013px; margin: 10px auto; } div.orderType div.selectedOrderType { border-bottom: 2px solid #C40000; } div.orderType div { border-bottom: 2px solid #E8E8E8; float: left; } table.orderListTitleTable { border: 1px solid #E8E8E8; width: 100%; margin: 20px 0px; background-color: #F5F5F5; text-align: center; } table.orderListTitleTable td { padding: 12px 0px; } div.orderType a { border-right: 1px solid #E8E8E8; float: left; font-size: 16px; font-weight: bold; color: black; margin-bottom: 10px; padding: 0px 20px; text-decoration: none; } div.orderType div.selectedOrderType a { color: #C40000; } div.orderType a:hover { color: #C40000; text-decoration: none; } div.orderTypeLastOne { overflow: hidden; float: none !important; border-bottom: 2px solid #E8E8E8; } a.noRightborder { border-right-width: 0px !important; } table.orderListItemTable { border: 2px solid #ECECEC; width: 100%; margin: 20px 0px; } table.orderListItemTable:hover { border: 2px solid #aaa !important; } tr.orderListItemFirstTR { background-color: #F1F1F1; font-size:12px; } table.orderListItemTable td { padding: 8px 10px; } div.orderItemWangWangGif { display: inline-block; width: 67px; height: 22px; background-image: url(https://how2j.cn/tmall/img/site/wangwang.gif); background-repeat: no-repeat; background-color: transparent; background-attachment: scroll; background-position: -0px -0px; position: relative; top: 0px; left: 2px; } span.orderListItemDelete { display: inline-block; margin: 0px 10px; color: #999999; font-size: 16px; } div.orderListItemProductLinkOutDiv { position: relative; height: 80px; font-size:12px; } div.orderListItemProductLinkInnerDiv { position: absolute; bottom: 0px; } div.orderListItemProductOriginalPrice { color: #999999; font-size: 14px; } div.orderListItemProductPrice { color: #3C3C3C; font-size: 14px; } div.orderListItemProductRealPrice { color: #3C3C3C; font-size: 14px; font-weight: bold; } div.orderListItemPriceWithTransport { color: #6C6C6C; font-size: 12px; } td.orderListItemProductRealPriceTD { text-align: center; } button.orderListItemConfirm { background-color: #66B6FF; border-radius: 2px; color: white; font-size: 12px; font-weight: bold; border-width: 0px; padding: 6px 12px; } button.orderListItemConfirm:hover { background-color: #118ADB; } button.orderListItemReview { border: 1px solid #DCDCDC; background-color: #fff; border-radius: 2px; color: #3C3C3C; font-size: 12px; font-weight: bold; padding: 6px 12px; } button.orderListItemReview:hover { border-color: #C40000; color: #C40000; } td.orderItemDeleteTD { text-align: right; } td.orderListItemButtonTD { text-align: center; } span.orderListItemNumber { color: #3C3C3C; } td.orderListItemNumberTD { text-align: center; } div.confirmPayPageDiv { max-width: 1013px; margin: 10px auto; } div.confirmPayImageDiv { margin: 40px auto 80px auto; width: 900px; position: relative; } div.confirmPayImageDiv div { color: #999999; } div.confirmPayTime1 { position: absolute; top: 100px; left: -20px; } div.confirmPayTime2 { position: absolute; top: 100px; left: 190px; } div.confirmPayTime3 { position: absolute; top: 100px; left: 400px; } div.confirmPayOrderInfoText { margin: 10px 10px 0px 10px; font-size: 16px; font-weight: bold; color: black; padding-bottom: 15px; border-bottom: 1px solid #ADC8E6; } div.confirmPayOrderItemDiv { margin: 0px 20px; } div.confirmPayOrderItemText { margin: 20px 10px; font-size: 14px; font-weight: bold; color: black; } table.confirmPayOrderItemTable thead { background-color: #E8F2FF; height: 33px; } table.confirmPayOrderItemTable tr { border: 1px solid #DDDDDD; } table.confirmPayOrderItemTable { border: 1px solid #DDDDDD; width: 100%; } span.conformPayProductPrice { font-size: 18px; font-weight: bold; color: #666666; } table.confirmPayOrderItemTable th, table.confirmPayOrderItemTable td { text-align: center; } table.confirmPayOrderItemTable td { padding: 20px; } td.confirmPayOrderItemProductLink { text-align: left !important; } div.confirmPayOrderItemText { color: black; font-weight: normal; } span.confirmPayOrderItemSumPrice { color: #C40000; } table.confirmPayOrderDetailTable { width: 100%; border-top: 1px solid #DDDDDD; } table.confirmPayOrderDetailTable td { padding: 8px; color: black; font-size: 14px; } div.confirmPayOrderDetailDiv { margin: 40px; } span.confirmPayOrderDetailWangWangGif { display: inline-block; width: 67px; height: 22px; background-image: url(https://how2j.cn/tmall/img/site/wangwang.gif); background-repeat: no-repeat; background-color: transparent; background-attachment: scroll; background-position: -0px -0px; position: relative; top: 0px; left: 2px; } div.confirmPayButtonDiv { border: 1px solid #F58B0F; margin: 20px; } div.confirmPayWarning { margin: 20px 80px; font-size: 18px; color: red; font-weight: bold; } button.confirmPayButton:hover { background-color: #F6AE30; } button.confirmPayButton { margin: 20px 80px; width: 67px; height: 30px; border: 1px solid #E67C00; background-color: #F4A21D; border-radius: 4px; color: white; } div.orderFinishDiv { border: 1px solid #E5E5E5; padding: 40px; max-width: 1013px; margin: 10px auto; } div.orderFinishDiv span { font-size: 14px; color: black; font-weight: bold; margin-left: 20px; padding-top: 20px; } div.reviewDiv { max-width: 1013px; margin: 10px auto; } div.reviewProductInfoRightDiv { overflow: hidden; border-top: 1px solid #E7E7E7; padding: 30px 20px; } div.reviewProductInfoImg { border: 1px solid #E7E7E7; width: 464px; text-align: center; float: left; } div.reviewProductInfoRightText { color: black; font-size: 16px; font-weight: bold; } span.reviewProductInfoTablePrice { color: #C40000; font-size: 20px; font-weight: bold; } span.reviewProductInfoTableSellNumber { color: #C40000; font-size: 14px; font-weight: bold; } table.reviewProductInfoTable { margin: 20px 10px; } table.reviewProductInfoTable td { padding-bottom: 5px; color: #999999; } div.reviewProductInfoRightBelowDiv { border: 1px solid #F6F5F3; background-color: #FDFBFA; height: 166px; padding: 16px 81px; } span.reviewProductInfoRightBelowImg { background-color: white; border: 1px solid #E1E1E1; display: inline-block; width: 23px; height: 42px; background-image: url(https://how2j.cn/tmall/img/site/reviewLight.png); background-repeat: no-repeat; padding: 0px; } span.reviewProductInfoRightBelowText { border: 1px solid #EFEFEF; display: inline-block; width: 200px; height: 42px; padding: 4px; position: relative; left: -4px; top: -7px; color: #666666; } div.reviewStasticsLeft { width: 180px; float: left; } div.reviewStasticsLeftTop { background-color: #C40000; height: 6px; } div.reviewStasticsLeftContent { line-height: 29px; border-left: 1px solid #D5D4D4; border-right: 1px solid #D5D4D4; background-color: #F6F5F1; text-align: center; font-size: 14px; color: #363535; font-weight: bold; } span.reviewStasticsNumber { color: #284CA5; } div.reviewStasticsLeftFoot { height: 6px; border-left: 1px solid #D5D4D4; border-bottom: 1px solid #D5D4D4; background-color: #F6F5F1; } div.reviewStasticsRight { overflow: hidden; } div.reviewStasticsRightEmpty { height: 35px; } div.reviewStasticsFoot { background-color: #F6F5F1; border: 1px solid #D5D4D4; border-left-width: 0px; height: 6px; } div.makeReviewDiv { border: 1px solid #D1CCC8; margin: 20px 0px; background-color: #EFEFEF; } div.makeReviewText { font-size: 16px; color: #333333; font-weight: bold; margin: 20px 40px; } table.makeReviewTable { margin: 20px 40px; } table.makeReviewTable td { border: 1px solid #E7E7E7; padding: 10px; background-color: white; } table.makeReviewTable textarea { border-width: 0px; resize: none; width: 420px; height: 120px; } td.makeReviewTableFirstTD { background-color: #F6F6F6; } div.makeReviewButtonDiv { background-color: white; text-align: center; padding: 15px; } div.makeReviewButtonDiv button { width: 72px; height: 26px; border-radius: 2px; background-color: #C40000; color: white; border-width: 0px; font-weight: bold; } div.registerDiv { margin: 10px 20px; text-align: center; } table.registerTable { color: #3C3C3C; font-size: 16px; table-layout: fixed; margin-top: 50px; } table.registerTable td { padding: 10px 30px; } td.registerTableLeftTD { width: 300px; text-align: right; } td.registerTableRightTD { width: 300px; text-align: left; } td.registerTip { font-weight: bold; } table.registerTable input { border: 1px solid #DEDEDE; width: 213px; height: 36px; font-size: 14px; } td.registerButtonTD { text-align: center; } table.registerTable button { width: 170px; height: 36px; border-radius: 2px; color: white; background-color: #C40000; border-width: 0px; } table.registerTable { } div.registerSuccessDiv { margin: 10px 20px; background-color: #F3FDF6; border: 1px solid #DEF3E6; font-size: 16px; color: #3C3C3C; padding: 20px 130px; } div.categoryPageDiv { max-width: 1013px; margin: 10px auto; } div.searchResultDiv { max-width: 1013px; margin: 10px auto; min-height: 300px; } div.productPageDiv { max-width: 1013px; margin: 10px auto; } div.categoryPictureInProductPageDiv { width: 100%; margin: 10px auto; text-align: center; } div.reviewStasticsDiv { margin-top: 20px; } div.registerErrorMessageDiv { width: 600px; margin: 0px auto; height: 50px; visibility: hidden; } td.orderItemProductInfoPartTD { border-bottom: solid 1px #ECECEC; } td.orderItemOrderInfoPartTD { border: solid 1px #ECECEC; } div.reviewDate { width: 100px; } div.reviewDivlistReviewsEach div { display: inline-block; } div.reviewDate { color: #CCCCDD; } div.reviewContent { color: #333333; width: 698px; } div.reviewUserInfo { color: #333333; } div.reviewDivlistReviewsEach { padding: 20px; border-bottom: 1px solid #ECECEC; } span.reviewUserInfoAnonymous { color: #CCCCDD; margin-left: 5px; } a.productLink { height: 34px; } img.carouselImage { height: 510px !important; } div.noMatch { font-size: 20px; width: 200px; margin: 100px auto; color: #888; } table.cartProductTable th.operation{ width:80px; } table.cartProductTable th.selectAndImage{ width:150px; } table td{ font-size:12px; } </style> <script> function formatMoney(num){ num = num.toString().replace(/\$|\,/g,''); if(isNaN(num)) num = "0"; sign = (num == (num = Math.abs(num))); num = Math.floor(num*100+0.50000000001); cents = num%100; num = Math.floor(num/100).toString(); if(cents<10) cents = "0" + cents; for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++) num = num.substring(0,num.length-(4*i+3))+','+ num.substring(num.length-(4*i+3)); return (((sign)?'':'-') + num + '.' + cents); } function checkEmpty(id, name){ var value = $("#"+id).val(); if(value.length==0){ $("#"+id)[0].focus(); return false; } return true; } $(function(){ $("a.productDetailTopReviewLink").click(function(){ $("div.productReviewDiv").show(); $("div.productDetailDiv").hide(); }); $("a.productReviewTopPartSelectedLink").click(function(){ $("div.productReviewDiv").hide(); $("div.productDetailDiv").show(); }); $("span.leaveMessageTextareaSpan").hide(); $("img.leaveMessageImg").click(function(){ $(this).hide(); $("span.leaveMessageTextareaSpan").show(); $("div.orderItemSumDiv").css("height","100px"); }); $("div#footer a[href$=#nowhere]").click(function(){ alert("模仿天猫的连接,并没有跳转到实际的页面"); }); $("a.wangwanglink").click(function(){ alert("模仿旺旺的图标,并不会打开旺旺"); }); $("a.notImplementLink").click(function(){ alert("这个功能没做,蛤蛤~"); }); }); </script> </head> <body> <nav class="top "> <a href="#nowhere"> <span style="color:#C40000;margin:0px" class=" glyphicon glyphicon-home redColor"></span> 天猫首页 </a> <span>喵,欢迎来天猫</span> <a href="#nowhere">tmalltest</a> <a href="#nowhere">退出</a> <span class="pull-right"> <a href="#nowhere">我的订单</a> <a href="#nowhere"> <span style="color:#C40000;margin:0px" class=" glyphicon glyphicon-shopping-cart redColor"></span> 购物车<strong>5</strong>件</a> </span> </nav> <div class="buyPageDiv"> <form method="post"> <div class="buyFlow"> <img class="pull-left" src="https://how2j.cn/tmall/img/site/simpleLogo.png"> <img class="pull-right" src="https://how2j.cn/tmall/img/site/buyflow.png"> <div style="clear:both"></div> </div> <div class="address"> <div class="addressTip">输入收货地址</div> <div> <table class="addressTable"> <tr> <td class="firstColumn">详细地址<span class="redStar">*</span></td> <td><textarea name="address" placeholder="建议您如实填写详细收货地址,例如接到名称,门牌好吗,楼层和房间号等信息"></textarea></td> </tr> <tr> <td>邮政编码</td> <td><input name="post" placeholder="如果您不清楚邮递区号,请填写000000" type="text"></td> </tr> <tr> <td>收货人姓名<span class="redStar">*</span></td> <td><input name="receiver" placeholder="长度不超过25个字符" type="text"></td> </tr> <tr> <td>手机号码 <span class="redStar">*</span></td> <td><input name="mobile" placeholder="请输入11位手机号码" type="text"></td> </tr> </table> </div> </div> <div class="productList"> <div class="productListTip">确认订单信息</div> <table class="productListTable"> <thead> <tr> <th colspan="2" class="productListTableFirstColumn"> <img class="tmallbuy" src="https://how2j.cn/tmall/img/site/tmallbuy.png"> <a class="marketLink" href="#nowhere">店铺:天猫店铺</a> <a class="wangwanglink" href="#nowhere"> <span class="wangwangGif"></span> </a> </th> <th>单价</th> <th>数量</th> <th>小计</th> <th>配送方式</th> </tr> <tr class="rowborder"> <td colspan="2" ></td> <td></td> <td></td> <td></td> <td></td> </tr> </thead> <tbody class="productListTableTbody"> <tr class="orderItemTR"> <td class="orderItemFirstTD"><img class="orderItemImg" src="https://how2j.cn/tmall/img/productSingle_middle/3752.jpg"></td> <td class="orderItemProductInfo"> <a href="#nowhere" class="orderItemProductLink"> 洁霸BF522多功能洗地机刷地机酒店家用地毯清洗机 擦地机抛光机 </a> <img src="https://how2j.cn/tmall/img/site/creditcard.png" title="支持信用卡支付"> <img src="https://how2j.cn/tmall/img/site/7day.png" title="消费者保障服务,承诺7天退货"> <img src="https://how2j.cn/tmall/img/site/promise.png" title="消费者保障服务,承诺如实描述"> </td> <td> <span class="orderItemProductPrice">¥1,235.00</span> </td> <td> <span class="orderItemProductNumber">4</span> </td> <td><span class="orderItemUnitSum"> ¥4,940.00 </span></td> <td rowspan="5" class="orderItemLastTD"> <label class="orderItemDeliveryLabel"> <input type="radio" value="" checked="checked"> 普通配送 </label> <select class="orderItemDeliverySelect" class="form-control"> <option>快递 免邮费</option> </select> </td> </tr> <tr class="orderItemTR"> <td class="orderItemFirstTD"><img class="orderItemImg" src="https://how2j.cn/tmall/img/productSingle_middle/3182.jpg"></td> <td class="orderItemProductInfo"> <a href="#nowhere" class="orderItemProductLink"> 两轮平衡车双轮儿童思维漂移电动扭扭车智能滑板车成人体感代步车 </a> <img src="https://how2j.cn/tmall/img/site/creditcard.png" title="支持信用卡支付"> <img src="https://how2j.cn/tmall/img/site/7day.png" title="消费者保障服务,承诺7天退货"> <img src="https://how2j.cn/tmall/img/site/promise.png" title="消费者保障服务,承诺如实描述"> </td> <td> <span class="orderItemProductPrice">¥755.65</span> </td> <td> <span class="orderItemProductNumber">1</span> </td> <td><span class="orderItemUnitSum"> ¥755.65 </span></td> </tr> <tr class="orderItemTR"> <td class="orderItemFirstTD"><img class="orderItemImg" src="https://how2j.cn/tmall/img/productSingle_middle/1917.jpg"></td> <td class="orderItemProductInfo"> <a href="#nowhere" class="orderItemProductLink"> 依然美佳欧式布艺沙发组合可拆洗新款实木雕花大户型奢华别墅家具 </a> <img src="https://how2j.cn/tmall/img/site/creditcard.png" title="支持信用卡支付"> <img src="https://how2j.cn/tmall/img/site/7day.png" title="消费者保障服务,承诺7天退货"> <img src="https://how2j.cn/tmall/img/site/promise.png" title="消费者保障服务,承诺如实描述"> </td> <td> <span class="orderItemProductPrice">¥7,008.40</span> </td> <td> <span class="orderItemProductNumber">1</span> </td> <td><span class="orderItemUnitSum"> ¥7,008.40 </span></td> </tr> </tbody> </table> <div class="orderItemSumDiv"> <div class="pull-left"> <span class="leaveMessageText">给卖家留言:</span> <span> <img class="leaveMessageImg" src="https://how2j.cn/tmall/img/site/leaveMessage.png"> </span> <span class="leaveMessageTextareaSpan"> <textarea name="userMessage" class="leaveMessageTextarea"></textarea> <div> <span>还可以输入200个字符</span> </div> </span> </div> <span class="pull-right">店铺合计(含运费): ¥12,704.05</span> </div> </div> <div class="orderItemTotalSumDiv"> <div class="pull-right"> <span>实付款:</span> <span class="orderItemTotalSumSpan">¥12,704.05</span> </div> </div> <div class="submitOrderDiv"> <button type="button" class="submitOrderButton">提交订单</button> </div> </form> </div> <div class="modal " id="loginModal" tabindex="-1" role="dialog" > <div class="modal-dialog loginDivInProductPageModalDiv"> <div class="modal-content"> <div class="loginDivInProductPage"> <div class="loginErrorMessageDiv"> <div class="alert alert-danger" > <button type="button" class="close" data-dismiss="alert" aria-label="Close"></button> <span class="errorMessage"></span> </div> </div> <div class="login_acount_text">账户登录</div> <div class="loginInput " > <span class="loginInputIcon "> <span class=" glyphicon glyphicon-user"></span> </span> <input id="name" name="name" placeholder="手机/会员名/邮箱" type="text"> </div> <div class="loginInput " > <span class="loginInputIcon "> <span class=" glyphicon glyphicon-lock"></span> </span> <input id="password" name="password" type="password" placeholder="密码" type="text"> </div> <span class="text-danger">不要输入真实的天猫账号密码</span><br><br> <div> <a href="#nowhere">忘记登录密码</a> <a href="#nowhere" class="pull-right">免费注册</a> </div> <div style="margin-top:20px"> <button class="btn btn-block redButton loginSubmitButton" type="button">登录</button> </div> </div> </div> </div> </div> <div class="modal" id="deleteConfirmModal" tabindex="-1" role="dialog" > <div class="modal-dialog deleteConfirmModalDiv"> <div class="modal-content"> <div class="modal-header"> <button data-dismiss="modal" class="close" type="button"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> <h4 class="modal-title">确认删除?</h4> </div> <div class="modal-footer"> <button data-dismiss="modal" class="btn btn-default" type="button">关闭</button> <button class="btn btn-primary deleteConfirmButton" id="submit" type="button">确认</button> </div> </div> </div> </div> </div> <div id="footer" class="footer" style="display: block;"> <div id="footer_ensure" class="footer_ensure"> <a href="#nowhere"> <img src="https://how2j.cn/tmall/img/site/ensure.png"> </a> </div> <div id="footer_desc" class="footer_desc"> <div class="descColumn"> <span class="descColumnTitle">购物指南</span> <a href="#nowhere" >免费注册</a> <a href="#nowhere" >开通支付宝</a> <a href="#nowhere" >支付宝充值</a> </div> <div class="descColumn"> <span class="descColumnTitle">天猫保障</span> <a href="#nowhere" >发票保障</a> <a href="#nowhere" >售后规则</a> <a href="#nowhere" >缺货赔付</a> </div> <div class="descColumn"> <span class="descColumnTitle">支付方式</span> <a href="#nowhere" >快捷支付</a> <a href="#nowhere" >信用卡</a> <a href="#nowhere" >蚂蚁花呗</a> <a href="#nowhere" >货到付款</a> </div> <div class="descColumn"> <span class="descColumnTitle">商家服务</span> <a href="#nowhere" >商家入驻</a> <a href="#nowhere" >商家中心</a> <a href="#nowhere" >天猫智库</a> <a href="#nowhere" >天猫规则</a> <a href="#nowhere" >物流服务</a> <a href="#nowhere" >喵言喵语</a> <a href="#nowhere" >运营服务</a> </div> <div class="descColumn"> <span class="descColumnTitle">手机天猫</span> <a href="#nowhere" ><img src="https://how2j.cn/tmall/img/site/ma.png"></a> </div> </div> <div style="clear:both"></div> <img id="cateye" class="cateye" src="https://how2j.cn/tmall/img/site/cateye.png"> <div id="copyright" class="copyright"> <div class="white_link" > <a href="#nowhere" >关于天猫</a> <a href="#nowhere" > 帮助中心</a> <a href="#nowhere" >开放平台</a> <a href="#nowhere" > 诚聘英才</a> <a href="#nowhere" >联系我们</a> <a href="#nowhere" >网站合作</a> <a href="#nowhere" >法律声明</a> <a href="#nowhere" >知识产权</a> <a href="#nowhere" > 廉正举报 </a> </div> <div class="white_link" > <a href="#nowhere" > 阿里巴巴集团</a><span class="slash">|</span> <a href="#nowhere" > 淘宝网</a><span class="slash">|</span> <a href="#nowhere" >天猫 </a><span class="slash">|</span> <a href="#nowhere" > 聚划算</a><span class="slash">|</span> <a href="#nowhere" >全球速卖通</a><span class="slash">|</span> <a href="#nowhere" >阿里巴巴国际交易市场</a><span class="slash">|</span> <a href="#nowhere" >1688</a><span class="slash">|</span> <a href="#nowhere" >阿里妈妈</a><span class="slash">|</span> <a href="#nowhere" > 阿里旅行·去啊 </a><span class="slash">|</span> <a href="#nowhere" > 阿里云计算 </a><span class="slash">|</span> <a href="#nowhere" > 阿里通信 </a><span class="slash">|</span> <a href="#nowhere" > YunOS </a><span class="slash">|</span> <a href="#nowhere" > 阿里旅行·去啊 </a><span class="slash">|</span> <a href="#nowhere" > 万网 </a><span class="slash">|</span> <a href="#nowhere" > 高德 </a><span class="slash">|</span> <a href="#nowhere" > 优视 </a><span class="slash">|</span> <a href="#nowhere" > 友盟 </a><span class="slash">|</span> <a href="#nowhere" > 虾米 </a><span class="slash">|</span> <a href="#nowhere" > 天天动听 </a><span class="slash">|</span> <a href="#nowhere" > 来往 </a><span class="slash">|</span> <a href="#nowhere" > 钉钉 </a><span class="slash">|</span> <a href="#nowhere" > 支付宝 </a> </div> <div class="license"> <span>增值电信业务经营许可证: 浙B2-20110446</span> <span>网络文化经营许可证:浙网文[2015]0295-065号</span> <span>互联网医疗保健信息服务 审核同意书 浙卫网审【2014】6号 </span> <span>互联网药品信息服务资质证书编号:浙-(经营性)-2012-0005</span> <div class="copyRightYear">© 2003-2016 TMALL.COM 版权所有</div> <div> <img src="https://how2j.cn/tmall/img/site/copyRight1.jpg"> <img src="https://how2j.cn/tmall/img/site/copyRight2.jpg"> </div> </div> </div> </div> </body> </html>


源代码
1. 双击选中单词 2. 三击选中整行 3. CTRL+F 查找 4. F8 全屏编辑,再次点击恢复
渲染中 渲染完成
效果
增值内容,请先登录
模仿天猫前端,单纯使用Html和CSS实现天猫官网, 大大提升前端技术与能力,积累宝贵前端项目经验。总计28张页面布局分析图, 33个js交互代码讲解, 395个选择器,1150个样式(每个均有注释), 涵盖全部68个知识点,267个学习步骤,包含一共21个讲解视频,累计时长11小时44分25秒,大小1.97G,为简历加上一个有吸引力的砝码。 学习期间,遇到本项目任何问题,都可以得到我的专业指导。 (购买一次,即可访问天猫前端所有知识点)
增值内容,点击购买
使用爬虫已经被系统记录,请勿使用爬虫,增大封号风险。 如果是误封 ,请联系站长,谢谢
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <html> <head> <script src="https://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script> <link href="https://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet"> <script src="https://how2j.cn/study/js/bootstrap/3.3.6/bootstrap.min.js"></script> <style> .show { border: 1px dotted skyblue !important; } body { font-size: 12px; font-family: Arial; min-width:1024px; } a { color: #999; } a:hover { text-decoration: none; color: #C40000; } nav.top { padding-top: 5px; padding-bottom: 5px; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #e7e7e7; } .redColor { color: #C40000; } .boldWord { font-weight: bold; } nav.top span { margin-right: 20px; } nav.top span, nav.top a { color: #999; margin: 0px 10px 0px 10px; } nav.top a:hover { color: #C40000; } nav.top { background-color: #f2f2f2; } nav.top div.row div { margin: 5px 0px; } nav.top div.row div { background-color: lightgray; border: 1px solid gray; text-align: center; } div.searchDiv { background-color: #C40000; width: 400px; margin: 50px auto; padding: 1px; height: 40px; display: block; } div.searchDiv input { width: 275px; border: 1px solid transparent; height: 36px; margin: 1px; outline:none; } div.searchDiv button { width: 110px; border: 1px solid transparent; background-color: #C40000; color: white; font-size: 20px; font-weight: bold; } div.categoryWithCarousel { width: 100%; position:relative; } div.carouselBackgroundDiv{ width:100%; height:510px; background-color: #E8E8E8; position: absolute; top:36px; z-index:-1; } div.categoryWithCarousel div.headbar { background-color: #DD2727; } div.carousel-of-product { width: 1024px; height: 510px; margin:0px auto; } div.carousel-inner div.item img{ } div.categoryWithCarousel div.categoryMenu { width: 200px; background-color: #e2e2e3; margin-left: 20px; position: absolute; left: 0; top: 0; z-index: 1; } div.categoryWithCarousel div.productsAsideCategorys { width: 825px; height: 510px; background-color: white; margin-left: 220px; display: none; position: absolute; left: 0; top: 0; z-index: 1; } div.categoryWithCarousel div.eachCategory:hover { background-color: white; } div.categoryWithCarousel div.eachCategory span { margin-right: 10px; } div.categoryWithCarousel div.eachCategory { line-height: 30px; padding-left: 10px; font-size: 14px; } div.categoryWithCarousel div.rightMenu { display: inline-block; } div.categoryWithCarousel div.rightMenu img { height: 30px; } div.categoryWithCarousel div.rightMenu span { margin: 0px 20px 0px 20px; } div.categoryWithCarousel div.rightMenu a { font-size: 16px; color: white; } div.categoryWithCarousel div.head { width: 200px; background-color: #C60A0A; height: 36px; line-height: 36px; font-size: 16px; font-weight: bold; color: white; margin-left: 20px; display: inline-block; } div.productsAsideCategorys a { color: #999; font-size: 14px; margin: 8px; } div.productsAsideCategorys a:hover { color: #C40000; text-decoration: none; } div.productsAsideCategorys div.row { margin: 20px 80px 0px 80px; } div.productsAsideCategorys div.row div.seperator { margin-top: 20px; border-bottom-style: dashed; border-bottom-width: 1px; border-bottom-color: #e7e7e7; } div.categoryMenu a { color: #000; } div.categoryMenu a:hover { color: lightskyblue; text-decoration: none; } div.searchBelow span { color: #999; } div.searchBelow { margin-top: 3px; margin-left: -20px; } div.searchBelow a { padding: 0px 20px 0px 20px; font-size: 14px; } div.homepageDiv{ position:relative; } img.catear { position: absolute; height: 15px; display: none; } img.logo { position: absolute; left: 0px; top: 30px; } div.homepageCategoryProducts { background-color: #F5F5F5; padding: 50px 10px 50px 10px; margin: 10px auto; max-width: 1013px; } div.left-mark { display: inline-block; height: 20px; vertical-align: top; width: 5px; background-color: #19C8A9; } span.categoryTitle { font-size: 16px; margin-left: 30px; color: #646464; font-weight: bold; } div.productItem { width: 189px; height: 285px; border: 1px solid white; background-color: white; margin: 8px 4px; float: left; cursor: pointer; } a.productItemDescLink { display: inline-block; height: 66px; } div.productItem:hover { border: 1px solid #C40000; } div.productItem span.productItemDesc { font-size: 12px; color: #666666; display: block; padding: 16px; } div.productItem span.productPrice { font-size: 16px; color: #FF003A; display: block; padding-left: 16px; margin-top: -10px; } div.eachHomepageCategoryProducts { margin: 0px 0px 40px 0px; } div.productItem img { width: 187px; height: 190px; } div.productItem img:hover { opacity: 0.7; filter: alpha(opacity = 70); } img.endpng { display: block; width: 82px; margin: 0 auto; } div.footer { margin: 0px 0px; border-top-style: solid; border-top-width: 1px; border-top-color: solid; border-top-color: #e7e7e7; } div.footer_ensure { margin-top: 24px; margin-bottom: 24px; text-align: center; } div.footer_desc { border-top-style: solid; border-top-width: 1px; border-top-color: #e7e7e7; padding-top: 30px; margin: 0px 20px; } div.footer div.copyright div.white_link a { color: white; padding: 0px 5px; } div.footer div.copyright div.white_link { padding: 10px 0px; margin-left: 10px; } div.footer_desc div.descColumn { width: 20%; float: left; padding-left: 15px; } div.footer_desc div.descColumn span.descColumnTitle { color: #646464; font-weight: bold; font-size: 16px; } div.footer_desc a { display: block; padding-top: 3px; } div.copyright { background-color: black; border-top-style: solid; border-top-width: 2px; border-top-color: solid; border-top-color: #C40000; } img.cateye { margin-left: 20px; } div.copyright span.slash { color: white; } div.license { margin-left: 10px; padding-bottom: 30px; } div.license div.copyRightYear { margin: 10px 0px; color: #686868; } div.license span { color: #A4A4A4; } div.simpleLogo { padding: 32px 0px; } img.loginBackgroundImg { display: block; margin: 0px auto; } div.loginDivInProductPageModalDiv { width: 350px; } div.deleteConfirmModalDiv { width: 350px; } div.loginDivInProductPage { background-color: white; width: 350px; height: 400px; padding: 60px 25px 80px 25px; } div.loginSmallDiv { background-color: white; position: absolute; right: 180px; top: 180px; width: 350px; height: 400px; padding: 60px 25px 80px 25px; } div.loginErrorMessageDiv { width: 300px; position: absolute; top: 20px; display: none; } div.loginErrorMessageDiv div.alert { padding: 5px !important; } div.login_acount_text { color: #3C3C3C; font-size: 16px; font-weight: bold; } div.loginInput { border: 1px solid #CBCBCB; margin: 20px 0px; } div.loginInput input { display: inline-block; border: 0px solid transparent; width: 244px; height: 30px; position: relative; left: 6px; top: 6px; } div.loginInput span, div.loginInput input { display: inline-block; } div.loginInput span.loginInputIcon { margin: 0px; background-color: #CBCBCB; width: 40px; height: 40px; } span.loginInputIcon span.glyphicon { font-size: 22px; position: relative; left: 9px; top: 9px; color: #606060; } button.redButton { color: white; background-color: #C40000; font-size: 14px; font-weight: bold; } div.categorySortBar { background-color: #FAF9F9; margin: 40px 20px 20px 20px; padding: 4px; } table.categorySortBarTable td { border: 1px solid #CCCCCC; padding: 3px; height: 23px; } table.categorySortBarTable { border-collapse: collapse; display: inline-table; } table.categorySortBarTable td a { color: #806F66; font-size:12px; } table.categorySortBarTable td a:hover { color: #C40000; } table.categorySortBarTable td.grayColumn { background-color: #F1EDEC; } table.categorySortBarTable td.priceMiddleColumn { width: 10px; vertical-align: middle; color: #CCCCCC; } table.categorySortTable td:hover { background-color: #F1EDEC; } table.categorySortBarTable span.glyphicon { font-size: 10px; } table.categorySortBarTable input { border-width: 0px; height: 100%; width: 50px; font-size:12px; } div.categoryProducts { padding: 0px 20px 40px 20px; } div.productUnit { width: 225px; height: 338px; border: 3px solid #fff; background-color: white; margin: 12px 5px; float: left; padding: 0px; } div.productUnit:hover { width: 225px; border: 3px solid #C40000; padding: 0px; } div.productUnit span.productUnitDesc { font-size: 12px; color: #666666; display: block; padding: 16px; } div.productUnitFrame{ border:1px solid #eee; } div.productUnitFrame:hover{ border:1px solid #C40000; } div.productUnit span.productPrice { font-size: 20px; color: #CC0000; display: block; padding-left: 4px; } div.productUnit span.productReview { border-left-width: 1px; border-left-style: solid; border-left-color: #EEEEEE; border-right-width: 1px; border-right-style: solid; border-right-color: #EEEEEE; } div.productUnit a.productLink { margin: 10px 0px; color: #333333; font: 0.8em; display: block; } div.productUnit a.productLink:hover { text-decoration: underline; color: #C40000; } div.productUnit a.tmallLink { margin: 10px 0px; color: #999999; font: 0.8em; display: block; text-decoration: underline; } div.productUnit a.tmallLink:hover { text-decoration: underline; color: #C40000; } div.productUnit div.productInfo { color: #999999; } div.productUnit span.monthDeal, div.productUnit span.productReview { display: inline-block; width: 90px; height: 30px; padding-top: 5px; padding-left: 5px; } div.productUnit span.wangwang { padding-left: 3px; } div.productUnit span.productDealNumber { font-weight: bold; color: #B57C5B; } div.productUnit span.productReviewNumber { font-weight: bold; color: #3388BB; } div.productUnit img.productImage { width: 100%; height: 190px; } div.productUnit div.productInfo { border-top-width: 1px; border-top-style: solid; border-top-color: #EEEEEE; } img.simpleLogo { position: absolute; left: 10px; top: 50px; width: 140px; } div.simpleSearchDiv { background-color: #C40000; width: 300px; margin: 10px 20px 40px; padding: 1px; height: 40px; display: block; } div.simpleSearchDiv input { width: 225px; border: 1px solid transparent; height: 34px; margin: 2px; outline:none; } div.simpleSearchDiv button { width: 60px; border: 1px solid transparent; background-color: #C40000; color: white; font-size: 14px; } div.imgAndInfo { margin: 40px 20px; } div.imgAndInfo img.bigImg { width: 400px; height: 400px; padding: 20px; border: 1px solid #F2F2F2; } div.imgAndInfo div.smallImageDiv { width: 80%; margin: 20px auto; } div.imgAndInfo img.smallImage { width: 60px; height: 60px; border: 2px solid white; } div.imgAndInfo img.smallImage:hover { border: 2px solid black; } div.imgInimgAndInfo { width: 400px; float: left; } div.infoInimgAndInfo { padding: 0px 20px; overflow: hidden; } div.infoInimgAndInfo div.productTitle { color: black; font-size: 16px; font-weight: bold; margin: 0px 10px; } div.infoInimgAndInfo div.productSubTitle { color: #DD2727; font-size: 12px; margin: 0px 10px; } div.infoInimgAndInfo div.juhuasuan { background-color: #2DA77A; color: white; text-align: center; line-height: 40px; margin-top: 10px; } div.infoInimgAndInfo span.juhuasuanBig { font-size: 18px; font-weight: bold; font-family: Arial; } div.infoInimgAndInfo span.juhuasuanTime { color: #FFC057; font-weight: bold; } div.infoInimgAndInfo div.gouwujuanDiv { margin-top: 5px; } div.infoInimgAndInfo div.originalDiv { margin-top: 5px; } div.infoInimgAndInfo div.promotionDiv { margin-top: 0px; } div.infoInimgAndInfo div.productPriceDiv { background-image: url(https://how2j.cn/tmall/img/site/priceBackground.png); height: 102px; padding: 10px; color: #666666; } div.infoInimgAndInfo span.originalPriceDesc { color: #999999; display: inline-block; width: 68px; } div.infoInimgAndInfo span.promotionPriceDesc { color: #999999; display: inline-block; width: 68px; position: relative; left: 0px; top: -10px; } div.infoInimgAndInfo span.originalPriceYuan { font-family: Arial; font-size: 12px; } div.infoInimgAndInfo span.originalPrice { font-family: Arial; font-size: 12px; color: #333333; text-decoration: line-through; } div.infoInimgAndInfo span.promotionPriceYuan { font-family: Arial; font-size: 18px; color: #C40000; } div.infoInimgAndInfo span.promotionPrice { color: #c40000; font-family: Arial; font-size: 30px; font-weight: bold; } div.infoInimgAndInfo div.productSaleAndReviewNumber { margin: 20px 0px; border-top-style: dotted; border-top-color: #C9C9C9; border-top-width: 1px; border-bottom-style: dotted; border-bottom-color: #C9C9C9; border-bottom-width: 1px; padding: 10px; } div.infoInimgAndInfo div.productSaleAndReviewNumber div { display: inline-block; width: 49%; text-align: center; color: #999999; font-size: 12px; } div.infoInimgAndInfo div.productSaleAndReviewNumber div:first-child { border-right-width: 1px; border-right-style: solid; border-right-color: #E5DFDA; } div.infoInimgAndInfo div.productNumber { color: #999999; } div.infoInimgAndInfo span.productNumberSettingSpan { border: 1px solid #999; display: inline-block; width: 43px; height: 32px; padding: 7px 0; } div.infoInimgAndInfo input.productNumberSetting { border: 0px; height: 80%; width: 80%; } div.productNumber span.glyphicon { font-size: 6px; } div.productNumber span.arrow { display: inline-block; width: 22px; height: 32px; vertical-align:top; } div.productNumber span.updown img{ display:inline-block; vertical-align:top; } div.productNumber span.updown { border: 1px solid #999; display: block; width: 20px; height: 14px; text-align: center; padding-top:4px; } div.productNumber span.updownMiddle { height: 4px; display: block; } div.serviceCommitment { margin: 20px 0px; } div.infoInimgAndInfo span.serviceCommitmentDesc { color: #999999; } div.infoInimgAndInfo span.serviceCommitmentLink a { color: #666666; } div.productDetailDiv { width: 790px; margin: 40px auto; } div.productReviewDiv { width: 790px; margin: 40px auto; } div.productReviewContentPart { padding-top: 50px; } div.productDetailTopPart { border: 1px solid #DFDFDF; border-left-width: 0px; } div.productReviewTopPart { border: 1px solid #DFDFDF; } div.productParamterPart { border: 1px solid #DFDFDF; padding: 40px; } div.productParamter { color: #999999; font-weight: bold; margin-bottom: 20px; } div.productParamterList span { display: block; width: 220px; float: left; padding: 8px 0px; color: #666666; } a.selected { border-left: 1px solid #cfbfb1; border-right: 1px solid #cfbfb1; color: #b10000; display: inline-block; font-weight: bold; line-height: 46px; width: 90px; text-align: center; position: relative; } a.selected:after { border-color: #b00000 transparent transparent; border-style: solid; border-width: 5px; content: ""; display: block; width: 0; height: 0; position: absolute; top: -1px; left: 50%; margin-left: -5px; } a.selected:before { border-color: #b00000; border-style: solid; border-width: 1px; content: ""; display: block; width: 90px; height: 0; position: absolute; top: -1px; margin-left: -1px; } a.productDetailTopReviewLink { padding: 0px 20px; border-right: 1px dotted #D2D2D2; color: #333333; } span.productDetailTopReviewLinkNumber { color: #3355B9; } span.productReviewTopReviewLinkNumber { color: #3355B9; } div.productDetailImagesPart img { display: block; margin 20px 0px; width: 790px; } a.productReviewTopPartSelectedLink { padding: 0px 20px; color: #333333; } div.productReviewItem { border-bottom: 1px solid #E3E3E3; margin: 10px 0px; } div.productReviewItem div.productReviewItemDesc { width: 80%; display: inline-block; color: #333333; height: 94px; margin: 5px 20px; float: left; } div.productReviewItem div.productReviewItemUserInfo { color: #404040; margin: 5px 20px; overflow: hidden; padding: 20px 0; } div.productReviewItemContent { } div.productReviewItemDate { margin: 15px 0px 0px 0px; color: #CCCCCC; } span.userInfoGrayPart { color: #999999; } div.productReviewDiv { display: none; } div.buyPageDiv { margin: 20px auto; max-width: 1013px; } div.buyDiv { margin: 20px auto; text-align: center; } div.buyPageDiv button { display: inline-block; margin: 0px 10px; width: 180px; height: 40px; } div.buyDiv button { display: inline-block; margin: 0px 10px; width: 180px; height: 40px; } button.buyButton { border: 1px solid #C40000; background-color: #FFEDED; text-align: center; line-height: 40px; font-size: 16px; color: #C40000; font-family: arial; } button.addCartButton { border: 1px solid #C40000; background-color: #C40000; text-align: center; line-height: 40px; font-size: 16px; color: white; font-family: arial; } button.addCartButton span.glyphicon { font-size: 12px; margin-right: 8px; } div.address { margin: 20px 5px; text-align: left; } div.addressTip, div.productListTip { color: #333333; font-size: 16px; font-weight: bold; text-align: left; margin-bottom: 30px; } table.addressTable { margin: 20px 20px; width: 600px; } table.addressTable td.firstColumn { width: 100px; } table.addressTable td { color: #333333; text-align: right; vertical-align: top; padding-right: 5px; text-align: left; height: 30px; font-size:12px; } span.redStar { color: red; font-size: 8px; } table.addressTable td input { border: 1px solid #AFAFAF; width: 200px; } table.addressTable td textarea { border: 1px solid #AFAFAF; margin-bottom: 10px; width: 400px; } img.tmallbuy { width: 15px; } a.marketLink { color: black; font-size: 12px; font-family: Arial; font-weight: normal; } a.marketLink:hover { color: black; font-size: 12px; text-decoration: underline; font-family: Arial; font-weight: normal; } span.wangwangGif { display: inline-block; width: 25px; height: 25px; background-image: url(https://how2j.cn/tmall/img/site/wangwang.gif); background-repeat: no-repeat; background-color: transparent; background-attachment: scroll; background-position: -83px -0px; position: relative; top: 8px; left: 2px; } table.productListTable { width: 100%; border-collapse: separate; } table.productListTable th { color: #999999; font-family: Arial; font-weight: normal; font-size: 12px; text-align: center; padding-bottom: 5px; } th.productListTableFirstColumn { text-align: left !important; } table.productListTable tr.rowborder td { background-color: #b2d1ff; border-right: 2px solid #fff; height: 3px; } img.orderItemImg { width: 50px; height: 50px; border: 1px solid #E9E9E9; } tr.orderItemTR td { padding: 10px 0px; } a.orderItemProductLink { color: #666666; display: block; } a.orderItemProductLink:hover { color: #666666; text-decoration: underline; } td.orderItemProductInfo { text-align: left; } td.orderItemProductInfo img { height: 16px; } span.orderItemProductPrice, span.orderItemProductNumber { color: #000000; } span.orderItemUnitSum { color: #CC0000; font-weight: bold; } tr.orderItemTR td { border-bottom: 1px solid #E5E5E5; } tbody.productListTableTbody td { text-align: center; font-size:12px; } tbody.productListTableTbody td.orderItemFirstTD { text-align: left; } tbody.productListTableTbody td.orderItemProductInfo { text-align: left; } td.orderItemFirstTD, td.orderItemLastTD { border-bottom: 0px solid black !important; } label.orderItemDeliveryLabel { color: #666666; font-family: Arial; font-size: 12px; font-weight: normal; } select.orderItemDeliverySelect { width: 100px; height: 23px; } div.orderItemSumDiv span { color: #999999; } div.orderItemSumDiv { padding: 20px; border-top: 2px solid #B4D0FF; background-color: #F2F6FF; height: 50px; } textarea.leaveMessageTextarea { border: 1px solid #FFAD35; width: 250px; height: 60px; resize: none; } span.leaveMessageText { display: inilne-block; margin-right: 10px; float: left; } span.leaveMessageTextareaSpan { display: inilne-block; } div.orderItemTotalSumDiv { margin: 40px; height: 40px; } div.orderItemTotalSumDiv span { color: #999999; } span.orderItemTotalSumSpan { color: #C40000 !important; font-size: 22px; font-weight: bold; border-bottom: 1px dotted #F2F6FF; } div.submitOrderDiv { height: 40px; margin: 20px 0px; } button.submitOrderButton { border: 1px solid #C40000; background-color: #C40000; text-align: center; line-height: 40px; font-size: 14px; font-weight: 700; color: white; float: right; } div.aliPayPageLogo { margin: 20px; } div.aliPayPageDiv { text-align: center; padding-bottom: 40px; max-width: 1013px; margin: 10px auto; } span.confirmMoneyText { color: #4D4D4D; } span.confirmMoney { display: block; color: #FF6600; font-weight: bold; font-size: 20px; margin: 10px; } img.aliPayImg { } button.confirmPay { background-color: #00AAEE; border: 1px solid #00AAEE; text-align: center; line-height: 31px; font-size: 14px; font-weight: 700; color: white; width: 107px; margin-top: 20px; } div.payedDiv { border: 1px solid #D4D4D4; max-width: 1013px; margin: 10px auto 20px auto; } div.payedTextDiv { height: 61px; background-color: #ECFFDC; padding: 17px 0px 0px 25px; } div.payedTextDiv span { font-weight: bold; font-size: 14px; margin-left: 10px; } div.payedAddressInfo { padding: 26px 35px; } div.payedAddressInfo li { background-image: url("https://how2j.cn/tmall/img/site/li_dot.png"); background-repeat: no-repeat; background-color: transparent; background-attachment: scroll; background-position: 0px 13px; list-style-type: none; color: #333333; padding-left: 15px; padding-top: 5px; } span.payedInfoPrice { color: #B10000; font-weight: bold; font-size: 14px; font-family: arial; } a.payedCheckLink { color: #2D8CBA; } a.payedCheckLink:hover { color: #2D8CBA; text-decoration: underline; } div.paedCheckLinkDiv { margin-left: 38px; } div.payedSeperateLine { border-top: 1px dotted #D4D4D4; margin: 0px 31px; } div.warningDiv { margin: 23px 45px; } div.warningDiv { color: black; } div.cartDiv { max-width: 1013px; margin: 10px auto; color: black; } span.cartTitlePrice { color: #C40000; font-size: 14px; font-weight: bold; margin-left: 5px; margin-right: 3px; } div.cartTitle button { background-color: #AAAAAA; border: 1px solid #AAAAAA; color: white; width: 53px; height: 25px; border-radius: 2px; } table.cartProductTable { width: 100%; font-size:12px; } table.cartProductTable th { font-weight: normal; color: #3C3C3C; padding: 20px 20px; } img.cartProductImg { padding: 1px; border: 1px solid #EEEEEE; width: 80px; height: 80px; } a.cartProductLink { color: #3C3C3C; } a.cartProductLink:hover { color: #C40000; text-decoration: underline; } div.cartProductLinkOutDiv { position: relative; height: 80px; } div.cartProductLinkInnerDiv { position: absolute; bottom: 0; height: 20px; } tr.cartProductItemTR td { padding: 20px 20px; } tr.cartProductItemTR { border: 1px solid #CCCCCC; } span.cartProductItemOringalPrice { text-decoration: line-through; color: #9C9C9C; display: block; font-weight: bold; font-size: 14px; } span.cartProductItemPromotionPrice { font-family: Arial; font-size: 14px; font-weight: bold; color: #C40000; } span.cartProductItemSmallSumPrice { font-family: Arial; font-size: 14px; font-weight: bold; color: #C40000; } div.cartProductChangeNumberDiv { border: solid 1px #E5E5E5; width: 80px; } div.cartProductChangeNumberDiv input { border: solid 1px #AAAAAA; width: 42px; display: inline-block; } div.cartProductChangeNumberDiv a { text-decoration: none; } div.cartProductChangeNumberDiv a { width: 14px; display: inline-block; text-align: center; color: black; text-decoration: none; } img.cartProductItemIfSelected, img.selectAllItem { cursor: pointer; } div.cartFoot { background-color: #E5E5E5; line-height: 50px; margin: 20px 0px; color: black; padding-left: 20px; } span.cartSumNumber { color: #C40000; font-weight: bold; font-size: 16px; } span.cartSumPrice { color: #C40000; font-weight: bold; font-size: 20px; } div.cartFoot button { background-color: #AAAAAA; border: 0px solid #AAAAAA; color: white; height: height%; width: 120px; height: 50px; font-size: 20px; text-align: center; } div.boughtDiv { max-width: 1013px; margin: 10px auto; } div.orderType div.selectedOrderType { border-bottom: 2px solid #C40000; } div.orderType div { border-bottom: 2px solid #E8E8E8; float: left; } table.orderListTitleTable { border: 1px solid #E8E8E8; width: 100%; margin: 20px 0px; background-color: #F5F5F5; text-align: center; } table.orderListTitleTable td { padding: 12px 0px; } div.orderType a { border-right: 1px solid #E8E8E8; float: left; font-size: 16px; font-weight: bold; color: black; margin-bottom: 10px; padding: 0px 20px; text-decoration: none; } div.orderType div.selectedOrderType a { color: #C40000; } div.orderType a:hover { color: #C40000; text-decoration: none; } div.orderTypeLastOne { overflow: hidden; float: none !important; border-bottom: 2px solid #E8E8E8; } a.noRightborder { border-right-width: 0px !important; } table.orderListItemTable { border: 2px solid #ECECEC; width: 100%; margin: 20px 0px; } table.orderListItemTable:hover { border: 2px solid #aaa !important; } tr.orderListItemFirstTR { background-color: #F1F1F1; font-size:12px; } table.orderListItemTable td { padding: 8px 10px; } div.orderItemWangWangGif { display: inline-block; width: 67px; height: 22px; background-image: url(https://how2j.cn/tmall/img/site/wangwang.gif); background-repeat: no-repeat; background-color: transparent; background-attachment: scroll; background-position: -0px -0px; position: relative; top: 0px; left: 2px; } span.orderListItemDelete { display: inline-block; margin: 0px 10px; color: #999999; font-size: 16px; } div.orderListItemProductLinkOutDiv { position: relative; height: 80px; font-size:12px; } div.orderListItemProductLinkInnerDiv { position: absolute; bottom: 0px; } div.orderListItemProductOriginalPrice { color: #999999; font-size: 14px; } div.orderListItemProductPrice { color: #3C3C3C; font-size: 14px; } div.orderListItemProductRealPrice { color: #3C3C3C; font-size: 14px; font-weight: bold; } div.orderListItemPriceWithTransport { color: #6C6C6C; font-size: 12px; } td.orderListItemProductRealPriceTD { text-align: center; } button.orderListItemConfirm { background-color: #66B6FF; border-radius: 2px; color: white; font-size: 12px; font-weight: bold; border-width: 0px; padding: 6px 12px; } button.orderListItemConfirm:hover { background-color: #118ADB; } button.orderListItemReview { border: 1px solid #DCDCDC; background-color: #fff; border-radius: 2px; color: #3C3C3C; font-size: 12px; font-weight: bold; padding: 6px 12px; } button.orderListItemReview:hover { border-color: #C40000; color: #C40000; } td.orderItemDeleteTD { text-align: right; } td.orderListItemButtonTD { text-align: center; } span.orderListItemNumber { color: #3C3C3C; } td.orderListItemNumberTD { text-align: center; } div.confirmPayPageDiv { max-width: 1013px; margin: 10px auto; } div.confirmPayImageDiv { margin: 40px auto 80px auto; width: 900px; position: relative; } div.confirmPayImageDiv div { color: #999999; } div.confirmPayTime1 { position: absolute; top: 100px; left: -20px; } div.confirmPayTime2 { position: absolute; top: 100px; left: 190px; } div.confirmPayTime3 { position: absolute; top: 100px; left: 400px; } div.confirmPayOrderInfoText { margin: 10px 10px 0px 10px; font-size: 16px; font-weight: bold; color: black; padding-bottom: 15px; border-bottom: 1px solid #ADC8E6; } div.confirmPayOrderItemDiv { margin: 0px 20px; } div.confirmPayOrderItemText { margin: 20px 10px; font-size: 14px; font-weight: bold; color: black; } table.confirmPayOrderItemTable thead { background-color: #E8F2FF; height: 33px; } table.confirmPayOrderItemTable tr { border: 1px solid #DDDDDD; } table.confirmPayOrderItemTable { border: 1px solid #DDDDDD; width: 100%; } span.conformPayProductPrice { font-size: 18px; font-weight: bold; color: #666666; } table.confirmPayOrderItemTable th, table.confirmPayOrderItemTable td { text-align: center; } table.confirmPayOrderItemTable td { padding: 20px; } td.confirmPayOrderItemProductLink { text-align: left !important; } div.confirmPayOrderItemText { color: black; font-weight: normal; } span.confirmPayOrderItemSumPrice { color: #C40000; } table.confirmPayOrderDetailTable { width: 100%; border-top: 1px solid #DDDDDD; } table.confirmPayOrderDetailTable td { padding: 8px; color: black; font-size: 14px; } div.confirmPayOrderDetailDiv { margin: 40px; } span.confirmPayOrderDetailWangWangGif { display: inline-block; width: 67px; height: 22px; background-image: url(https://how2j.cn/tmall/img/site/wangwang.gif); background-repeat: no-repeat; background-color: transparent; background-attachment: scroll; background-position: -0px -0px; position: relative; top: 0px; left: 2px; } div.confirmPayButtonDiv { border: 1px solid #F58B0F; margin: 20px; } div.confirmPayWarning { margin: 20px 80px; font-size: 18px; color: red; font-weight: bold; } button.confirmPayButton:hover { background-color: #F6AE30; } button.confirmPayButton { margin: 20px 80px; width: 67px; height: 30px; border: 1px solid #E67C00; background-color: #F4A21D; border-radius: 4px; color: white; } div.orderFinishDiv { border: 1px solid #E5E5E5; padding: 40px; max-width: 1013px; margin: 10px auto; } div.orderFinishDiv span { font-size: 14px; color: black; font-weight: bold; margin-left: 20px; padding-top: 20px; } div.reviewDiv { max-width: 1013px; margin: 10px auto; } div.reviewProductInfoRightDiv { overflow: hidden; border-top: 1px solid #E7E7E7; padding: 30px 20px; } div.reviewProductInfoImg { border: 1px solid #E7E7E7; width: 464px; text-align: center; float: left; } div.reviewProductInfoRightText { color: black; font-size: 16px; font-weight: bold; } span.reviewProductInfoTablePrice { color: #C40000; font-size: 20px; font-weight: bold; } span.reviewProductInfoTableSellNumber { color: #C40000; font-size: 14px; font-weight: bold; } table.reviewProductInfoTable { margin: 20px 10px; } table.reviewProductInfoTable td { padding-bottom: 5px; color: #999999; } div.reviewProductInfoRightBelowDiv { border: 1px solid #F6F5F3; background-color: #FDFBFA; height: 166px; padding: 16px 81px; } span.reviewProductInfoRightBelowImg { background-color: white; border: 1px solid #E1E1E1; display: inline-block; width: 23px; height: 42px; background-image: url(https://how2j.cn/tmall/img/site/reviewLight.png); background-repeat: no-repeat; padding: 0px; } span.reviewProductInfoRightBelowText { border: 1px solid #EFEFEF; display: inline-block; width: 200px; height: 42px; padding: 4px; position: relative; left: -4px; top: -7px; color: #666666; } div.reviewStasticsLeft { width: 180px; float: left; } div.reviewStasticsLeftTop { background-color: #C40000; height: 6px; } div.reviewStasticsLeftContent { line-height: 29px; border-left: 1px solid #D5D4D4; border-right: 1px solid #D5D4D4; background-color: #F6F5F1; text-align: center; font-size: 14px; color: #363535; font-weight: bold; } span.reviewStasticsNumber { color: #284CA5; } div.reviewStasticsLeftFoot { height: 6px; border-left: 1px solid #D5D4D4; border-bottom: 1px solid #D5D4D4; background-color: #F6F5F1; } div.reviewStasticsRight { overflow: hidden; } div.reviewStasticsRightEmpty { height: 35px; } div.reviewStasticsFoot { background-color: #F6F5F1; border: 1px solid #D5D4D4; border-left-width: 0px; height: 6px; } div.makeReviewDiv { border: 1px solid #D1CCC8; margin: 20px 0px; background-color: #EFEFEF; } div.makeReviewText { font-size: 16px; color: #333333; font-weight: bold; margin: 20px 40px; } table.makeReviewTable { margin: 20px 40px; } table.makeReviewTable td { border: 1px solid #E7E7E7; padding: 10px; background-color: white; } table.makeReviewTable textarea { border-width: 0px; resize: none; width: 420px; height: 120px; } td.makeReviewTableFirstTD { background-color: #F6F6F6; } div.makeReviewButtonDiv { background-color: white; text-align: center; padding: 15px; } div.makeReviewButtonDiv button { width: 72px; height: 26px; border-radius: 2px; background-color: #C40000; color: white; border-width: 0px; font-weight: bold; } div.registerDiv { margin: 10px 20px; text-align: center; } table.registerTable { color: #3C3C3C; font-size: 16px; table-layout: fixed; margin-top: 50px; } table.registerTable td { padding: 10px 30px; } td.registerTableLeftTD { width: 300px; text-align: right; } td.registerTableRightTD { width: 300px; text-align: left; } td.registerTip { font-weight: bold; } table.registerTable input { border: 1px solid #DEDEDE; width: 213px; height: 36px; font-size: 14px; } td.registerButtonTD { text-align: center; } table.registerTable button { width: 170px; height: 36px; border-radius: 2px; color: white; background-color: #C40000; border-width: 0px; } table.registerTable { } div.registerSuccessDiv { margin: 10px 20px; background-color: #F3FDF6; border: 1px solid #DEF3E6; font-size: 16px; color: #3C3C3C; padding: 20px 130px; } div.categoryPageDiv { max-width: 1013px; margin: 10px auto; } div.searchResultDiv { max-width: 1013px; margin: 10px auto; min-height: 300px; } div.productPageDiv { max-width: 1013px; margin: 10px auto; } div.categoryPictureInProductPageDiv { width: 100%; margin: 10px auto; text-align: center; } div.reviewStasticsDiv { margin-top: 20px; } div.registerErrorMessageDiv { width: 600px; margin: 0px auto; height: 50px; visibility: hidden; } td.orderItemProductInfoPartTD { border-bottom: solid 1px #ECECEC; } td.orderItemOrderInfoPartTD { border: solid 1px #ECECEC; } div.reviewDate { width: 100px; } div.reviewDivlistReviewsEach div { display: inline-block; } div.reviewDate { color: #CCCCDD; } div.reviewContent { color: #333333; width: 698px; } div.reviewUserInfo { color: #333333; } div.reviewDivlistReviewsEach { padding: 20px; border-bottom: 1px solid #ECECEC; } span.reviewUserInfoAnonymous { color: #CCCCDD; margin-left: 5px; } a.productLink { height: 34px; } img.carouselImage { height: 510px !important; } div.noMatch { font-size: 20px; width: 200px; margin: 100px auto; color: #888; } table.cartProductTable th.operation{ width:80px; } table.cartProductTable th.selectAndImage{ width:150px; } table td{ font-size:12px; } </style> <script> function formatMoney(num){ num = num.toString().replace(/\$|\,/g,''); if(isNaN(num)) num = "0"; sign = (num == (num = Math.abs(num))); num = Math.floor(num*100+0.50000000001); cents = num%100; num = Math.floor(num/100).toString(); if(cents<10) cents = "0" + cents; for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++) num = num.substring(0,num.length-(4*i+3))+','+ num.substring(num.length-(4*i+3)); return (((sign)?'':'-') + num + '.' + cents); } function checkEmpty(id, name){ var value = $("#"+id).val(); if(value.length==0){ $("#"+id)[0].focus(); return false; } return true; } $(function(){ $("a.productDetailTopReviewLink").click(function(){ $("div.productReviewDiv").show(); $("div.productDetailDiv").hide(); }); $("a.productReviewTopPartSelectedLink").click(function(){ $("div.productReviewDiv").hide(); $("div.productDetailDiv").show(); }); $("span.leaveMessageTextareaSpan").hide(); $("img.leaveMessageImg").click(function(){ $(this).hide(); $("span.leaveMessageTextareaSpan").show(); $("div.orderItemSumDiv").css("height","100px"); }); $("div#footer a[href$=#nowhere]").click(function(){ alert("模仿天猫的连接,并没有跳转到实际的页面"); }); $("a.wangwanglink").click(function(){ alert("模仿旺旺的图标,并不会打开旺旺"); }); $("a.notImplementLink").click(function(){ alert("这个功能没做,蛤蛤~"); }); }); </script> </head> <body> <nav class="top "> <a href="#nowhere"> <span style="color:#C40000;margin:0px" class=" glyphicon glyphicon-home redColor"></span> 天猫首页 </a> <span>喵,欢迎来天猫</span> <a href="#nowhere">tmalltest</a> <a href="#nowhere">退出</a> <span class="pull-right"> <a href="#nowhere">我的订单</a> <a href="#nowhere"> <span style="color:#C40000;margin:0px" class=" glyphicon glyphicon-shopping-cart redColor"></span> 购物车<strong>5</strong>件</a> </span> </nav> <div class="buyPageDiv"> <form method="post"> <div class="buyFlow"> <img class="pull-left" src="https://how2j.cn/tmall/img/site/simpleLogo.png"> <img class="pull-right" src="https://how2j.cn/tmall/img/site/buyflow.png"> <div style="clear:both"></div> </div> <div class="address"> <div class="addressTip">输入收货地址</div> <div> <table class="addressTable"> <tr> <td class="firstColumn">详细地址<span class="redStar">*</span></td> <td><textarea name="address" placeholder="建议您如实填写详细收货地址,例如接到名称,门牌好吗,楼层和房间号等信息"></textarea></td> </tr> <tr> <td>邮政编码</td> <td><input name="post" placeholder="如果您不清楚邮递区号,请填写000000" type="text"></td> </tr> <tr> <td>收货人姓名<span class="redStar">*</span></td> <td><input name="receiver" placeholder="长度不超过25个字符" type="text"></td> </tr> <tr> <td>手机号码 <span class="redStar">*</span></td> <td><input name="mobile" placeholder="请输入11位手机号码" type="text"></td> </tr> </table> </div> </div> <div class="productList"> <div class="productListTip">确认订单信息</div> <table class="productListTable"> <thead> <tr> <th colspan="2" class="productListTableFirstColumn"> <img class="tmallbuy" src="https://how2j.cn/tmall/img/site/tmallbuy.png"> <a class="marketLink" href="#nowhere">店铺:天猫店铺</a> <a class="wangwanglink" href="#nowhere"> <span class="wangwangGif"></span> </a> </th> <th>单价</th> <th>数量</th> <th>小计</th> <th>配送方式</th> </tr> <tr class="rowborder"> <td colspan="2" ></td> <td></td> <td></td> <td></td> <td></td> </tr> </thead> <tbody class="productListTableTbody"> <tr class="orderItemTR"> <td class="orderItemFirstTD"><img class="orderItemImg" src="https://how2j.cn/tmall/img/productSingle_middle/3752.jpg"></td> <td class="orderItemProductInfo"> <a href="#nowhere" class="orderItemProductLink"> 洁霸BF522多功能洗地机刷地机酒店家用地毯清洗机 擦地机抛光机 </a> <img src="https://how2j.cn/tmall/img/site/creditcard.png" title="支持信用卡支付"> <img src="https://how2j.cn/tmall/img/site/7day.png" title="消费者保障服务,承诺7天退货"> <img src="https://how2j.cn/tmall/img/site/promise.png" title="消费者保障服务,承诺如实描述"> </td> <td> <span class="orderItemProductPrice">¥1,235.00</span> </td> <td> <span class="orderItemProductNumber">4</span> </td> <td><span class="orderItemUnitSum"> ¥4,940.00 </span></td> <td rowspan="5" class="orderItemLastTD"> <label class="orderItemDeliveryLabel"> <input type="radio" value="" checked="checked"> 普通配送 </label> <select class="orderItemDeliverySelect" class="form-control"> <option>快递 免邮费</option> </select> </td> </tr> <tr class="orderItemTR"> <td class="orderItemFirstTD"><img class="orderItemImg" src="https://how2j.cn/tmall/img/productSingle_middle/3182.jpg"></td> <td class="orderItemProductInfo"> <a href="#nowhere" class="orderItemProductLink"> 两轮平衡车双轮儿童思维漂移电动扭扭车智能滑板车成人体感代步车 </a> <img src="https://how2j.cn/tmall/img/site/creditcard.png" title="支持信用卡支付"> <img src="https://how2j.cn/tmall/img/site/7day.png" title="消费者保障服务,承诺7天退货"> <img src="https://how2j.cn/tmall/img/site/promise.png" title="消费者保障服务,承诺如实描述"> </td> <td> <span class="orderItemProductPrice">¥755.65</span> </td> <td> <span class="orderItemProductNumber">1</span> </td> <td><span class="orderItemUnitSum"> ¥755.65 </span></td> </tr> <tr class="orderItemTR"> <td class="orderItemFirstTD"><img class="orderItemImg" src="https://how2j.cn/tmall/img/productSingle_middle/1917.jpg"></td> <td class="orderItemProductInfo"> <a href="#nowhere" class="orderItemProductLink"> 依然美佳欧式布艺沙发组合可拆洗新款实木雕花大户型奢华别墅家具 </a> <img src="https://how2j.cn/tmall/img/site/creditcard.png" title="支持信用卡支付"> <img src="https://how2j.cn/tmall/img/site/7day.png" title="消费者保障服务,承诺7天退货"> <img src="https://how2j.cn/tmall/img/site/promise.png" title="消费者保障服务,承诺如实描述"> </td> <td> <span class="orderItemProductPrice">¥7,008.40</span> </td> <td> <span class="orderItemProductNumber">1</span> </td> <td><span class="orderItemUnitSum"> ¥7,008.40 </span></td> </tr> </tbody> </table> <div class="orderItemSumDiv"> <div class="pull-left"> <span class="leaveMessageText">给卖家留言:</span> <span> <img class="leaveMessageImg" src="https://how2j.cn/tmall/img/site/leaveMessage.png"> </span> <span class="leaveMessageTextareaSpan"> <textarea name="userMessage" class="leaveMessageTextarea"></textarea> <div> <span>还可以输入200个字符</span> </div> </span> </div> <span class="pull-right">店铺合计(含运费): ¥12,704.05</span> </div> </div> <div class="orderItemTotalSumDiv"> <div class="pull-right"> <span>实付款:</span> <span class="orderItemTotalSumSpan">¥12,704.05</span> </div> </div> <div class="submitOrderDiv"> <button type="button" class="submitOrderButton">提交订单</button> </div> </form> </div> <div class="modal " id="loginModal" tabindex="-1" role="dialog" > <div class="modal-dialog loginDivInProductPageModalDiv"> <div class="modal-content"> <div class="loginDivInProductPage"> <div class="loginErrorMessageDiv"> <div class="alert alert-danger" > <button type="button" class="close" data-dismiss="alert" aria-label="Close"></button> <span class="errorMessage"></span> </div> </div> <div class="login_acount_text">账户登录</div> <div class="loginInput " > <span class="loginInputIcon "> <span class=" glyphicon glyphicon-user"></span> </span> <input id="name" name="name" placeholder="手机/会员名/邮箱" type="text"> </div> <div class="loginInput " > <span class="loginInputIcon "> <span class=" glyphicon glyphicon-lock"></span> </span> <input id="password" name="password" type="password" placeholder="密码" type="text"> </div> <span class="text-danger">不要输入真实的天猫账号密码</span><br><br> <div> <a href="#nowhere">忘记登录密码</a> <a href="#nowhere" class="pull-right">免费注册</a> </div> <div style="margin-top:20px"> <button class="btn btn-block redButton loginSubmitButton" type="button">登录</button> </div> </div> </div> </div> </div> <div class="modal" id="deleteConfirmModal" tabindex="-1" role="dialog" > <div class="modal-dialog deleteConfirmModalDiv"> <div class="modal-content"> <div class="modal-header"> <button data-dismiss="modal" class="close" type="button"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> <h4 class="modal-title">确认删除?</h4> </div> <div class="modal-footer"> <button data-dismiss="modal" class="btn btn-default" type="button">关闭</button> <button class="btn btn-primary deleteConfirmButton" id="submit" type="button">确认</button> </div> </div> </div> </div> </div> <div id="footer" class="footer" style="display: block;"> <div id="footer_ensure" class="footer_ensure"> <a href="#nowhere"> <img src="https://how2j.cn/tmall/img/site/ensure.png"> </a> </div> <div id="footer_desc" class="footer_desc"> <div class="descColumn"> <span class="descColumnTitle">购物指南</span> <a href="#nowhere" >免费注册</a> <a href="#nowhere" >开通支付宝</a> <a href="#nowhere" >支付宝充值</a> </div> <div class="descColumn"> <span class="descColumnTitle">天猫保障</span> <a href="#nowhere" >发票保障</a> <a href="#nowhere" >售后规则</a> <a href="#nowhere" >缺货赔付</a> </div> <div class="descColumn"> <span class="descColumnTitle">支付方式</span> <a href="#nowhere" >快捷支付</a> <a href="#nowhere" >信用卡</a> <a href="#nowhere" >蚂蚁花呗</a> <a href="#nowhere" >货到付款</a> </div> <div class="descColumn"> <span class="descColumnTitle">商家服务</span> <a href="#nowhere" >商家入驻</a> <a href="#nowhere" >商家中心</a> <a href="#nowhere" >天猫智库</a> <a href="#nowhere" >天猫规则</a> <a href="#nowhere" >物流服务</a> <a href="#nowhere" >喵言喵语</a> <a href="#nowhere" >运营服务</a> </div> <div class="descColumn"> <span class="descColumnTitle">手机天猫</span> <a href="#nowhere" ><img src="https://how2j.cn/tmall/img/site/ma.png"></a> </div> </div> <div style="clear:both"></div> <img id="cateye" class="cateye" src="https://how2j.cn/tmall/img/site/cateye.png"> <div id="copyright" class="copyright"> <div class="white_link" > <a href="#nowhere" >关于天猫</a> <a href="#nowhere" > 帮助中心</a> <a href="#nowhere" >开放平台</a> <a href="#nowhere" > 诚聘英才</a> <a href="#nowhere" >联系我们</a> <a href="#nowhere" >网站合作</a> <a href="#nowhere" >法律声明</a> <a href="#nowhere" >知识产权</a> <a href="#nowhere" > 廉正举报 </a> </div> <div class="white_link" > <a href="#nowhere" > 阿里巴巴集团</a><span class="slash">|</span> <a href="#nowhere" > 淘宝网</a><span class="slash">|</span> <a href="#nowhere" >天猫 </a><span class="slash">|</span> <a href="#nowhere" > 聚划算</a><span class="slash">|</span> <a href="#nowhere" >全球速卖通</a><span class="slash">|</span> <a href="#nowhere" >阿里巴巴国际交易市场</a><span class="slash">|</span> <a href="#nowhere" >1688</a><span class="slash">|</span> <a href="#nowhere" >阿里妈妈</a><span class="slash">|</span> <a href="#nowhere" > 阿里旅行·去啊 </a><span class="slash">|</span> <a href="#nowhere" > 阿里云计算 </a><span class="slash">|</span> <a href="#nowhere" > 阿里通信 </a><span class="slash">|</span> <a href="#nowhere" > YunOS </a><span class="slash">|</span> <a href="#nowhere" > 阿里旅行·去啊 </a><span class="slash">|</span> <a href="#nowhere" > 万网 </a><span class="slash">|</span> <a href="#nowhere" > 高德 </a><span class="slash">|</span> <a href="#nowhere" > 优视 </a><span class="slash">|</span> <a href="#nowhere" > 友盟 </a><span class="slash">|</span> <a href="#nowhere" > 虾米 </a><span class="slash">|</span> <a href="#nowhere" > 天天动听 </a><span class="slash">|</span> <a href="#nowhere" > 来往 </a><span class="slash">|</span> <a href="#nowhere" > 钉钉 </a><span class="slash">|</span> <a href="#nowhere" > 支付宝 </a> </div> <div class="license"> <span>增值电信业务经营许可证: 浙B2-20110446</span> <span>网络文化经营许可证:浙网文[2015]0295-065号</span> <span>互联网医疗保健信息服务 审核同意书 浙卫网审【2014】6号 </span> <span>互联网药品信息服务资质证书编号:浙-(经营性)-2012-0005</span> <div class="copyRightYear">© 2003-2016 TMALL.COM 版权所有</div> <div> <img src="https://how2j.cn/tmall/img/site/copyRight1.jpg"> <img src="https://how2j.cn/tmall/img/site/copyRight2.jpg"> </div> </div> </div> </div> </body> </html> 
模仿天猫前端多功能交互教程 为how2j.cn 版权所有
(仅供购买者学习,请勿私自传播,否则自行承担相关法律责任)


HOW2J公众号,关注后实时获知最新的教程和优惠活动,谢谢。


问答区域    
2017-03-20 js,部分功能实现
漩涡大脚




本项目没有这块功能,自己想实现,在实现中遇到点问题 天猫选择收货地址功能,默认选中第一个,当鼠标点击二个的时候,第一取消样式,以此类推, 自己的表达能力不是很强,老师可以去浏览下天猫的那个选择地址页面。然后再看看我的就知道怎么个情况了,
加载中
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
        <script src="http://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script>
        <link href="http://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
        <script src="http://how2j.cn/study/js/bootstrap/3.3.6/bootstrap.min.js"></script>
		<title></title>
	</head>
	<style>
		body{
			font-size: 12px;
			font-family: arial;
		}
		a{
			text-decoration: none;
		}
		.redColor{
			color: #C40000 !important;
		}
		ul{
			margin: 0;
			padding: 0;
			list-style: none;
		}
		div.top{
			position: relative !important;
			width: auto;
			height: 26px;
			background:#F2F2F2;
			z-index: 99;
			border-bottom: 1px solid #E5E5E5;	
		}
		div.topdiv{
			width: 990px;
			margin:0px auto;
			position: relative;
		}
		div.topdiv-1{
			height: 26px;
			width: 100%;
			position: relative;
		}
		div.topdiv-1 a{
			color: #999999;
		}
		.sn-back-home{
			height: 26px;
			line-height: 26px;
			margin-right: 20px;
			float: left;
		}
	   .top-login-info{
	   	position: relative;
	   	display: inline-block;
	   	height: 26px;
	   	line-height: 26px;
	   }
	   .top-login-info span{
	   	margin-left: 20px;
	   }
	   .welcome-info{
	   	  display: block;
	   	  height: 26px;
	   	 float: left;	  
	   }
	   .Message{
	   	 float: left;
	   }
	  .MessageNum{
	  	padding-left: 2px;
	  	color: #666666;
	  	font-weight: 700;
	  	font-family: tahoma;
	  	line-height: 26px;
	  }
	  .sn-quick-menu{
	  	position: absolute;
	  	right: 0;
	  	top: 0;
	  	height: 26px;
	  	line-height: 26px;
	  }
	  .sn-quick-menu li{
	  	float: left;
	  	position: relative;
	  	margin: 0px 15px;
	  }
	  .menu-bd{
	  	display: none;
	  	 width: 90px;
	  	 text-align: center;
	  	 position: absolute;
	  	 border: solid #EEEEEE;
	  	 padding: 4px;
	  	 background: #FFFFFF;
	  	 border-width: 0 1px 1px;
	  	 top: 25px;
	  	 left: 0px;
         z-index: 1;
	  }
	  .menu-bd a{
	  	display: block;
	  }
	  .Menu-hd{
	  	height: 26px;
	  	position: relative;
	  	border: solid #EEEEEE;
	  	padding: 5px;
	  	
	  	border-width: 0 1px 1px;
	  	width: 90px;
	  }
	  .gouwuches{
	  	color:#666;
	  	font-weight: bold;
	  }
	  .hover{
	  	color: #CC0000 !important;
	  	background: white;
	  	
	  }
	  
	  .topdiv-2{
	  	position: relative;
	  }
	  .malllogo{
	  	width: 400px;
	  	padding-top:15px;
	  	position: relative;
	  	float: left;
	  	height: 64px;
	  	line-height: 64px;
	  	left: -80px;
	  }
	  .logo{
	  	position: relative;
	  	display: block;
	  	color: white;
	  	background: url("img/simpleLogo.png") no-repeat;
	  	height: 30px;
	  }
	 .oder-stepbar{
	  	list-style: none;
	  	position: absolute;
	  	right: 0;
	  	top: 0;
	  	padding: 20px 0 0;
	  	margin: 0 auto;
	  }
	  .mg{
	  	margin-right: -30px;
	  	width: 728px;
	  	margin-left: 0px;
	  }
	  .oder-stepbar li{
	  	float: left;
	  	text-align: center;
	  }
	  .oder-stepbar li:first:div{
	  	width: 182px;
	  	height: 58px;
	  }
	 .step-first .step-done .step-no{
	 	background: url(img/Za-734-340.png) 50% -204px;
	 }
	 .step-last .step-no{
	 	background: url(img/Za-734-340.png) 50%  -136px;
	 }
	  .step-name{
	  	width: 182px;
	  	height: 24px;
	  	line-height: 24px;
	  	padding: 3px 0px;
	  	font-weight: 700;
	  	color: #888888;
	  }
	  .step-no{
	  	height: 34px;
	  	line-height: 34px;
	  	font-size: 16px;
	  	color: white;
	  	background: url(img/Za-734-340.png) 50% -102px no-repeat;
	  }
	</style>
	<script type="text/javascript">
		$(function(){
		     $(".Menu-hd").hover(function(){
		     	$(this).addClass("hover");
		     	$(this).next().show();
		     },function(){
		     	
		     	$(this).removeClass("hover");
		     	$(this).next().hide();
		   });
		    $(".menu-bd").hover(function(){
		     	$(this).append().prev().addClass("hover");
		     	$(this).show();
		     },function(){
		     	
		     	$(this).append().prev().removeClass("hover");
		     	$(this).hide();
		   });
		});
	</script>
    <boby>
    	<div class="top">
    		<div class="topdiv">
    	        <div class="topdiv-1">
    	        	<p class="sn-back-home"><span class="glyphicon glyphicon-home redColor"></span><a href="#">天猫首页</a></p>
    	        	<p id="login-info" class="top-login-info">
    	        		<span class="welcome-info">
    	        			<span>Hi,</span>
    	        			<a href="#" title="含笑半步颠">含笑半步颠</a>
    	        		</span>
    	        		<span class="Message">
    	        			<span class="MessageCont">
    	        				<a class="MessageConta" href="#">信息<em class="MessageNum">26</em></a>
    	        			</span>
    	        		</span>
    	        		<span class="welcome-info">
    	        			<a href="logout">退出</a>
    	        		</span>
    	        	</p>
    	        	<ul class="sn-quick-menu">
    	        		<li class="mytaobao">
    	        			<div class="sn-menu">
    	        				<a class="Menu-hd" href="">我的淘宝<b></b></a>
    	        				<div class="menu-bd">
    	        					<div class="menu-bd-panel">
    	        						<a href="#">已买到的宝贝</a>
    	        						<a href="#">几卖出的宝贝</a>
    	        					</div>
    	        				</div>
    	        			</div>
    	        		</li>
    	        		<li class="mybrand">
    	        			<i class=""></i>
    	        			<a href="#">我关注的品牌</a>
    	        		</li>
    	        		<li class="myshopping">
    	        			<i class="glyphicon glyphicon-shopping-cart redColor"></i>
    	        			<a href="">购物车<span class="gouwuches">29</span>件</a>
    	        		</li>
    	        		<li class="myfavorite">
    	        			<div class="sn-menu">
    	        				<a class="Menu-hd" href="">收藏夹<b></b></a>
    	        				<div class="menu-bd">
    	        					<div class="muen-bd-panel">
    	        						<a href="#">收藏的宝贝</a>
    	        						<a href="#">收藏的店铺</a>
    	        					</div>
    	        				</div>
    	        			</div>
    	        		</li>
    	        		<li class="mysolid"></li>
    	        		<li class="myhome">
    	        			<a href="#">淘宝网</a>
    	        		</li>
    	        		<li class="mysolid">
    	        			<a href="#">企业网</a>
    	        		</li>
    	        		
    	        	</ul>
    	        </div>	
    	         <div class="topdiv-2">
    	         	<h1 class="malllogo">
    	         	<a class="logo" href="#"></a>
    	         	</h1>
    	         	<div class="header-extra">
    	         		<div class="stepbar-box">
    	         			<ol class="oder-stepbar mg">
    	         				<li class="step-first">   	         					
    	         					<div class="step-done">
    	         						<div class="step-name">拍下商品</div>
    	         						<div class="step-no"></div>
    	         					</div>  	         					
    	         				</li>
    	         				<li>
    	         					<div class="">
    	         						<div class="step-name">拍下商品</div>
    	         						<div class="step-no">2</div>
    	         					</div>  
    	         				</li>
    	         				<li>
    	         					<div class="">
    	         						<div class="step-name">拍下商品</div>
    	         						<div class="step-no">3</div>
    	         					</div>  
    	         				</li>
    	         				<li class="step-last">
    	         					<div class="">
    	         						<div class="step-name">拍下商品</div>
    	         						<div class="step-no">4</div>
    	         					</div>  
    	         				</li>
    	         			</ol>
    	         		</div>
    	         	</div>
    	         </div>
    		</div>
    	</div>
    	<div style="clear: both;"></div>
  
<style type="text/css">
	div.address{
		width: 100%;
		position: relative;
	}
	div.actionaddres{
		width: 1024px;
		margin: 0 auto;
		
	}
	div.addressCenter{
		width: 1024px;
		margin: 0 auto;
	}
    div.addressItem{
    	position: relative;
		width: 237px;
		height: 108px;
		padding: 15px;
		float: left;
		margin: 0px 8px;
		background-image: url(img/T1VPiBXvpeXXbjLKQ7-237-106.png);
	}
	div.addressItem:hover{
		background-image:url(img/T1fuaCXxFdXXbjLKQ7-237-106.png);
	}
	.addressCk{
		background-image:url(img/T1fuaCXxFdXXbjLKQ7-237-106.png);
	}
	div.actionaddres{
		margin-bottom: 20px;
	}
	div.actionaddres span{
		font-size: 16px;
		margin-left: 10px;
		font-weight: 700;
		color: #262626;
	}
	div.add-hd{
		border-bottom: 1px solid #F2F2F2;
		margin: 0px 0px 10px 0px;
	}
	span.addressItemTitleCity{
		color:#333333;
		font-weight: bold;
	}
	div.setDefault{
		position: absolute;
		width: 52px;
		height: 18px;
		top: 0;
		right: 0;
		color: white;
		background-color: #E5E5E5;
		padding: 2px;
		opacity:0.7;
		visibility: hidden;
	}
	div.curMarker{
		position: absolute;
		width: 28px;
		height: 28px;
		background: url(img/T1lAPdFOVXXXcb7s2x-30-600.png)0 -272px no-repeat;
		top: 77px;
		right: 1px;
		visibility: hidden;
		
	}
	
</style>
<script type="text/javascript">
	$(function(){
		$(".addressItem").click(function(){		
		    var num=$(this).attr("num");
		    
		    if(num=="0"){
		    	
			$(this).children(".curMarker").css("visibility","visible");
			$(this).children(".setDefault").css("visibility","visible");
		    $(this).attr("num","1");
		
			}else{
			$(this).children(".curMarker").css("visibility","hidden");
			$(this).children(".setDefault").css("visibility","hidden");
		    $(this).attr("num","0");
			}
	      
		});
	});
</script>
    	<div class="address">
    		<div class="addressDiv">
    			<div class="actionaddres">
    				<span>选择收货地址</span>
    			</div>
    			<div class="addressCenter">
    				<div class="addressItem addressCk" num="0">
    					<div class="add-hd" >
    						<span class="addressItemTitleProv">北京</span>
    						<span class="addressItemTitleCity">北京</span>
    						<span class=""> (</span>
    						<span class="addressItemTitlenName">张某某</span>
    						<span class="">收)</span>
    					</div>
    					<div class="add-bd">
    						<span class="dist">通州</span>
    						<span class="town">北苑</span>
    						<span class="street">杨庄路方舟花园小区</span>
    						<span>8号楼8单元</span>
    						<span class="phone">18666666666</span>
    					</div>
    					<div class="add-toolber">
    						<a class="modify" href="#">修改</a>
    					</div>
    					<div class="curMarker"></div>
    					<div class="setDefault">默认地址</div>
    				</div>
    				<div class="addressItem" num="0">
    					<div class="add-hd" >
    						<span class="addressItemTitleProv">北京</span>
    						<span class="addressItemTitleCity">北京</span>
    						<span class=""> (</span>
    						<span class="addressItemTitlenName">张某某</span>
    						<span class="">收)</span>
    					</div>
    					<div class="add-bd">
    						<span class="dist">通州</span>
    						<span class="town">北苑</span>
    						<span class="street">杨庄路方舟花园小区</span>
    						<span>8号楼8单元</span>
    						<span class="phone">18666666666</span>
    					</div>
    					<div class="add-toolber">
    						<a class="modify" href="#">修改</a>
    					</div>
    					<div class="curMarker"></div>
    					<div class="setDefault">默认地址</div>
    				</div>
    				<div class="addressItem" num="0">
    					<div class="add-hd" >
    						<span class="addressItemTitleProv">北京</span>
    						<span class="addressItemTitleCity">北京</span>
    						<span class=""> (</span>
    						<span class="addressItemTitlenName">张某某</span>
    						<span class="">收)</span>
    					</div>
    					<div class="add-bd">
    						<span class="dist">通州</span>
    						<span class="town">北苑</span>
    						<span class="street">杨庄路方舟花园小区</span>
    						<span>8号楼8单元</span>
    						<span class="phone">18666666666</span>
    					</div>
    					<div class="add-toolber">
    						<a class="modify" href="#">修改</a>
    					</div>
    					<div class="curMarker"></div>
    					<div class="setDefault">默认地址</div>
    				</div>
    				<div class="addressItem" num="0">
    					<div class="add-hd" >
    						<span class="addressItemTitleProv">北京</span>
    						<span class="addressItemTitleCity">北京</span>
    						<span class=""> (</span>
    						<span class="addressItemTitlenName">张某某</span>
    						<span class="">收)</span>
    					</div>
    					<div class="add-bd">
    						<span class="dist">通州</span>
    						<span class="town">北苑</span>
    						<span class="street">杨庄路方舟花园小区</span>
    						<span>8号楼8单元</span>
    						<span class="phone">18666666666</span>
    					</div>
    					<div class="add-toolber">
    						<a class="modify" href="#">修改</a>
    					</div>
    					<div class="curMarker"></div>
    					<div class="setDefault">默认地址</div>
    				</div>
    			</div>
    		</div>
    	</div>
	</body>
</html>

							


1 个答案

how2j
答案时间:2017-03-21
你这个效果不错呢。 不过有些图片你没有给图片,我看不到效果。 我就根据你的需要,修改背景色来达到近视的效果。 代码如下:http://how2j.cn/code/97



回答已经提交成功,正在审核。 请于 我的回答 处查看回答记录,谢谢
答案 或者 代码至少填写一项, 如果是自己有问题,请重新提问,否则站长有可能看不到









提问之前请登陆
提问已经提交成功,正在审核。 请于 我的提问 处查看提问记录,谢谢
关于 实践项目-天猫前端-结算页面 的提问

尽量提供截图代码异常信息,有助于分析和解决问题。 也可进本站QQ群交流: 578362961
提问尽量提供完整的代码,环境描述,越是有利于问题的重现,您的问题越能更快得到解答。
对教程中代码有疑问,请提供是哪个步骤,哪一行有疑问,这样便于快速定位问题,提高问题得到解答的速度
在已经存在的几千个提问里,有相当大的比例,是因为使用了和站长不同版本的开发环境导致的,比如 jdk, eclpise, idea, mysql,tomcat 等等软件的版本不一致。
请使用和站长一样的版本,可以节约自己大量的学习时间。 站长把教学中用的软件版本整理了,都统一放在了这里, 方便大家下载: https://how2j.cn/k/helloworld/helloworld-version/1718.html

上传截图