自动适应—根据分辨率大小可以相应显示不同图片(代码)

来源:互联网 发布:微信红包埋雷必中软件 编辑:程序博客网 时间:2024/06/01 10:16
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8"/>
        <title>How to redeem Xbox gold membership with coupon</title>
        <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" />
        <link href="ebay_redeem.css" type="text/css" rel="stylesheet">
        <!--[if lt IE 9]>
        <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
        <script type='text/javascript' src='scripts/respond.min.js'></script>
    </head>
    <body>
       
        <!-- STEP 1 -->
        <span class="steps_title">
            STEP 1. Get a coupon from ebay message
        </span>

        <span class="steps_content">
            <p>After you have made a payment to the xbox live membership card on ebay. Our system will send you an email within few minutes.
                From the email you will receive a coupon code of 12 characters which is a voucher for you to redeem your xbox live membership key.
                The email    from ebay message will look like as the following.</p>
               
            <p>Copy this coupon code to memory or mark it down. You will need it later on when you access our website to redeem the key.</p>
        </span>

        <div class="resp_img">
            <span id="ebay_msg" role="img" aria-label="Read the ebay message with coupon">
                <span class="inner">
                </span>
            </span>
        </div>

        <!-- STEP 2 -->
        <span class="steps_title">
            STEP 2. Signup to MMOGMart.com
        </span>

        <span class="steps_content">
            <p>Go to the main page of www.MMOGMart.com or by accessing <a href="https://www.mmogmart.com">this</a> link.</p>
            <p>Go to the login page by clicking the button on top corner as shown in the picture below  or by accessing <a href="https://www.mmogmart.com/customer/account/login/">this</a> link.</p></p>
        </span>

        <div class="resp_img">
            <span id="mmogmart" role="img" aria-label="MMOGMart main page">
                <span class="inner">
                </span>
            </span>
        </div>
       
        <span class="steps_content">
            <p>At login page, you can login directly with your social network account like Facebook, Twitter, Google+ or Instagram. In this way you will save your time and do not need to fill in extra information to MMOGMart.com</p>
            <p>Some people may worry MMOGMart.com may use their social network to promote. Don't worry we are bounded by the service agreement of these social networks' API. And we promise we won't use these connections to the Social networks to promote anything without your authorization.</p>
        </span>

        <div class="resp_img">
            <span id="sslogin" role="img" aria-label="MMOGMart Social Network Login">
                <span class="inner">
                </span>
            </span>
        </div>

        <span class="steps_content">
            <p>If you feel more comfortable to create an account with us and not using the social network to login, you may click <a href="https://www.mmogmart.com">here</a> to sign up youself.</p>
            <p>To sign up with MMOGMart.com, you will get the benefit to enjoy our latest promotion and discount, we have monthly promotion activities of total value of 1 million pounds and most of these activities are exclusive to members only.</p>
        </span>

        <div class="resp_img">
            <span id="create_account" role="img" aria-label="Create MMOGMart Account">
               
            </span>
        </div>

        <span class="steps_content">
            <p>When you create account, please fill in the email address that you want the xbox membership key send to</p>
        </span>

        <div class="resp_img">
            <span id="login_form" role="img" aria-label="Fill in the login form">
                <span class="inner">
                </span>
            </span>
        </div>

        <!-- STEP 3 -->
        <span class="steps_title">
            STEP 3. Confirm your email address
        </span>

        <span class="steps_content">
            <p>After you submit the sign up form from MMOGMart.com, open the email which you used to registered the MMOGMart account.</p>
            <p>You will receive a confirmation email sent out by Virtual Reality of MMOGMart. There will be a link name &quot;this confirmation link&quot; to validate your email address.</p>
            <p>Please make sure the confirmation email is not in your junk mail box. If this is the case please mark it as not junk before clicking the confirmation link.</p>
        </span>

        <div class="resp_img">
            <span id="email_confirm" role="img" aria-label="MMOGMart email confirmation">
                <span class="inner">
                </span>
            </span>
        </div>

        <span class="steps_content">
            <p>After you click on the confirmation link from your mailbox, you will be forwarded back to MMOGMart and complete the sign in.</p>
        </span>

        <div class="resp_img">
            <span id="after_confirmation" role="img" aria-label="MMOGMart email confirmation completed">
                <span class="inner">
                </span>
            </span>
        </div>

        <!-- STEP 4 -->
        <span class="steps_title">
            STEP 4. Choose the product to redeem
        </span>

        <span class="steps_content">
            <p>Go to <a href="http://www.mmogmart.com/gifts-gadgets.html">this</a> product page to choose the product to redeem and press &quot;add to card&quot;.</p>
        </span>

        <div class="resp_img">
            <span id="add_to_cart" role="img" aria-label="Add product to cart">
                <span class="inner">
                </span>
            </span>
        </div>

        <!-- STEP 5 -->
        <span class="steps_title">
            STEP 5. Apply coupon to redeem
        </span>

        <span class="steps_content">
            <p>You have been bring to your shopping cart page.</p>
            <p>At this stage the grand total amount is not zero.</p>
            <p>Under &quot;DISCOUNT CODE&quot; there is a field, fill in the coupon you have received from ebay message in STEP 1.</p>
            <p>Press apply.</p>
        </span>

        <div class="resp_img">
            <span id="apply_coupon" role="img" aria-label="Apply coupon">
                <span class="inner">
                </span>
            </span>
        </div>

        <span class="steps_content">
            <p>If you apply the coupon and get an error message like below, you probably have not login to the site yet. Please login to the site with the account you have created from STEP 2.</p>
            <p>Try to use USD instead of other currency when you apply the coupon</p>
        </span>

        <div class="resp_img">
            <span id="coupon_invalid" role="img" aria-label="Apply coupon">
                <span class="inner">
                </span>
            </span>
        </div>
       
        <span class="steps_content">
            <p>After you have applied the coupon the grand total will becomes zero.</p>
            <p>Now you can press &quot;Proceed to Checkout&quot;</p>
        </span>

        <div class="resp_img">
            <span id="proceed_checkout" role="img" aria-label="Apply coupon">
                <span class="inner">
                </span>
            </span>
        </div>

        <!-- STEP 6 -->
        <span class="steps_title">
            STEP 6. Get the membership key
        </span>

        <span class="steps_content">
            <p>After you press proceed to checkout, you follow the instructions from the page to jump through the pages</p>
            <p>On Page 2 <strong>Billing Information</strong>, make sure you select <strong>&quot;No Payment Information Required&quot;</strong></p>
        </span>

        <div class="resp_img">
            <span id="no_payment" role="img" aria-label="No payment information required">
                <span class="inner">
                </span>
            </span>
        </div>

        <span class="steps_content">
            <p>You will receive the membership key in your registered email address after you complete the checkout process.</p>
        </span>
       
    </body>

</html>

样式

span.steps_title {
                width: 100%;
                margin: 5px 0px 5px 0px;
                border: none;
                display: block;
                float: left;
                padding: 5px;
                font-family: Tahoma, Geneva, sans-serif;
                font-size: 200%;
                color: #FFFFFF;
                background-color: #57AFD8;
        }

        span.steps_content p {
                padding: 5px 15px 5px 15px;
                display: block;
                font-family: Tahoma, Geneva, sans-serif;
                font-size: 100%;
                color: #AAAAAA;
        }

        span.steps_content a:link {
                color: #EEEE00;
        }

        span.steps_content a:visited {
                color: #EEEE00;
        }

                /* mmogmart_large_ebayemail.jpg*/
        .resp_img #ebay_msg {
                width: 100%;
                display: inline-block;
                vertical-align: middle;
                font: 0/0 serif;
                text-shadow: none;
                color: transparent;
                background-size: 100%;
                background-repeat: no-repeat;
               
                 
        }

        .resp_img #ebay_msg .inner {
                 /* height/width of image */
                display: block;
                height: 0;
               
               
               
        }
       
       
        @media (min-width:800px) { .resp_img #ebay_msg .inner {
                 /* height/width of image */
                display: block;
                padding-top:80%;
                height: 0;       
               
               
        }}
       
       
       
       
       
       
       
       
        .resp_img #ebay_msg { background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_large_ebayemail.jpg"); display:block; }


                /* mmogmart main page */
        .resp_img #mmogmart {
                width: 100%;
                display: inline-block;
                vertical-align: middle;
                font: 0/0 serif;
                text-shadow: none;
                color: transparent;
                background-size: 100%;
                background-repeat: no-repeat;
               
        }

        .resp_img #mmogmart .inner {
                /* height/width of image */
                display: block;
                height: 0;
               
               
               
        }
       
        @media (min-width:800px) {  .resp_img #mmogmart .inner{
                 /* height/width of image */
                display: block;
                padding-top:80%;
                height: 0;       
               
               
        }}   
       
        .resp_img #mmogmart { background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_large.jpg"); }
       
       

                /* social login */
        .resp_img #sslogin {
                width: 100%;
                display: inline-block;
                vertical-align: middle;
                font: 0/0 serif;
                text-shadow: none;
                color: transparent;
                background-size: 100%;
                background-repeat: no-repeat;
        }

        .resp_img #sslogin .inner {
                 /* height/width of image */
                display: block;
                height: 0;
        }
       
        @media (min-width:800px) {  .resp_img #sslogin .inner{
                 /* height/width of image */
                display: block;
                padding-top:80%;
                height: 0;       
               
               
        }}
       
        .resp_img #sslogin { background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_large_sslogin.jpg"); }

                /* create account */
        .resp_img #create_account {
                width: 100%;
                display: inline-block;
                vertical-align: middle;
                font: 0/0 serif;
                text-shadow: none;
                color: transparent;
                background-size: 100%;
                background-repeat: no-repeat;
        }
       
         .resp_img #create_account .inner {
                 /* height/width of image */
                display: block;
                height: 0;
                padding-top:100%;
               
               
        }
   
       
        .resp_img #create_account { background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/transparent_dot.png"); }

                /* login form */
        .resp_img #login_form {
                width: 100%;
                display: inline-block;
                vertical-align: middle;
                font: 0/0 serif;
                text-shadow: none;
                color: transparent;
                background-size: 100%;
                background-repeat: no-repeat;
        }

        .resp_img #login_form .inner {
                padding-top: 80%; /* height/width of image */
                display: block;
                height: 0;
        }
       
        .resp_img #login_form { background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_large_loginform.jpg"); }

                /* email confirmation */
        .resp_img #email_confirm {
                width: 100%;
                display: inline-block;
                vertical-align: middle;
                font: 0/0 serif;
                text-shadow: none;
                color: transparent;
                background-size: 100%;
                background-repeat: no-repeat;
        }

        .resp_img #email_confirm .inner {
                padding-top: 80%; /* height/width of image */
                display: block;
                height: 0;
        }
       
        .resp_img #email_confirm { background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_large_emailconfirm.jpg"); }

                /* after confirmation */
        .resp_img #after_confirmation {
                width: 100%;
                display: inline-block;
                vertical-align: middle;
                font: 0/0 serif;
                text-shadow: none;
                color: transparent;
                background-size: 100%;
                background-repeat: no-repeat;
        }

        .resp_img #after_confirmation .inner {
                padding-top: 81%; /* height/width of image */
                display: block;
                height: 0;
        }
       
        .resp_img #after_confirmation { background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_large_afterconfirm.jpg"); }

                /* add to cart */
        .resp_img #add_to_cart {
                width: 100%;
                display: inline-block;
                vertical-align: middle;
                font: 0/0 serif;
                text-shadow: none;
                color: transparent;
                background-size: 100%;
                background-repeat: no-repeat;
        }

        .resp_img #add_to_cart .inner {
                padding-top: 81%; /* height/width of image */
                display: block;
                height: 0;
        }
       
        .resp_img #add_to_cart { background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_large_addtocart.jpg"); }

                /* apply coupon */
        .resp_img #apply_coupon {
                width: 100%;
                display: inline-block;
                vertical-align: middle;
                font: 0/0 serif;
                text-shadow: none;
                color: transparent;
                background-size: 100%;
                background-repeat: no-repeat;
        }

        .resp_img #apply_coupon .inner {
                padding-top: 100%; /* height/width of image */
                display: block;
                height: 0;
        }
       
        .resp_img #apply_coupon { background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_large_applycoupon.jpg"); }

                /* apply coupon */
        .resp_img #coupon_invalid {
                width: 100%;
                display: inline-block;
                vertical-align: middle;
                font: 0/0 serif;
                text-shadow: none;
                color: transparent;
                background-size: 100%;
                background-repeat: no-repeat;
        }

        .resp_img #coupon_invalid .inner {
                padding-top: 10%; /* height/width of image */
                display: block;
                height: 0;
        }
       
        .resp_img #coupon_invalid { background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_large_coupon_invalid.jpg"); }
               
                /* proceed checkout */
        .resp_img #proceed_checkout {
                width: 100%;
                display: inline-block;
                vertical-align: middle;
                font: 0/0 serif;
                text-shadow: none;
                color: transparent;
                background-size: 100%;
                background-repeat: no-repeat;
        }

        .resp_img #proceed_checkout .inner {
                padding-top: 80%; /* height/width of image */
                display: block;
                height: 0;
        }
       
        .resp_img #proceed_checkout { background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_large_checkout.jpg"); }
               
                /* no payment information required */
        .resp_img #no_payment {
                width: 100%;
                display: inline-block;
                vertical-align: middle;
                font: 0/0 serif;
                text-shadow: none;
                color: transparent;
                background-size: 100%;
                background-repeat: no-repeat;
        }

        .resp_img #no_payment .inner {
                padding-top: 80%; /* height/width of image */
                display: block;
                height: 0;
        }
       
        .resp_img #no_payment { background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_large_nopayment.jpg"); }
               

/*
        .resp_img #step_img_1 {
                width: 100%;
                display: inline-block;
                vertical-align: middle;
                font: 0/0 serif;
                text-shadow: none;
                color: transparent;
                background-size: 100%;
                background-repeat: no-repeat;
        }

        .resp_img #step_img_1 .inner {
                padding-top: 60.9375%;
                display: block;
                height: 0;
        }
 
        .resp_img #step_img_1 { background-image: url("http://www.mmogmart.com/media/wysiwyg/sign_up_large.jpg"); }
*/

        /* Media Queries */
        @media only screen and (max-width: 580px) {

                span.steps_title {font-size: 125%;}

                .resp_img #ebay_msg {
                        background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_small_ebayemail.jpg");
                        padding-top: 100%; /* height/width of image */
                }

                .resp_img #mmogmart {
                        background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_small.jpg");
                        padding-top: 125%; /* height/width of image */
                }

                .resp_img #sslogin {
                        background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_small_sslogin.jpg");
                        padding-top: 125%; /* height/width of image */
                }
               
                .resp_img #create_account {
                        background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_small_createacct.jpg");
                        padding-top: 50%; /* height/width of image */
                }
               
                .resp_img #login_form {
                        background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_small_loginform.jpg");
                        padding-top: 0%; /* height/width of image */
                }
               
                .resp_img #email_confirm {
                        background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_small_emailconfirm.jpg");
                        padding-top:50%; /* height/width of image */
                }
               
                .resp_img #after_confirmation {
                        background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_small_afterconfirm.jpg");
                        padding-top: 20%; /* height/width of image */
                }
               
                .resp_img #add_to_cart {
                        background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_small_addtocart.jpg");
                        padding-top: 25%; /* height/width of image */
                }
               
                .resp_img #apply_coupon {
                        background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_small_applycoupon.jpg");
                        padding-top: 85%; /* height/width of image */
                }
               
                .resp_img #coupon_invalid {
                        background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_small_coupon_invalid.jpg");
                        padding-top: 20%; /* height/width of image */
                }
               
                .resp_img #proceed_checkout {
                        background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_small_checkout.jpg");
                        padding-top: 125%; /* height/width of image */
                }
               
                .resp_img #no_payment {
                        background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_small_nopayment.jpg");
                        padding-top:70%; /* height/width of image */
                }
        }


        @media only screen and (min-width: 581px) and (max-width: 789px) {

                span.steps_title {font-size: 150%;}

                .resp_img #ebay_msg {
                        background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_medium_ebayemail.jpg");
                        padding-top: 100%; /* height/width of image */
                }

                .resp_img #mmogmart {
                        background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_medium.jpg");
                        padding-top: 80%; /* height/width of image */
                }

                .resp_img #sslogin {
                        background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_medium_sslogin.jpg");
                        padding-top: 50%; /* height/width of image */
                }
               
                .resp_img #create_account {
                        background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_medium_createacct.jpg");
                        padding-top: 20%; /* height/width of image */
                }
               
                .resp_img #login_form {
                        background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_medium_loginform.jpg");
                        padding-top: 20%; /* height/width of image */
                }
               
                .resp_img #email_confirm {
                        background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_medium_emailconfirm.jpg");
                        padding-top: 50%; /* height/width of image */
                }

                .resp_img #after_confirmation {
                        background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_medium_afterconfirm.jpg");
                        padding-top: 25%; /* height/width of image */
                }
               
                .resp_img #add_to_cart {
                        background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_medium_addtocart.jpg");
                        padding-top: 20%; /* height/width of image */
                }
               
                .resp_img #apply_coupon {
                        background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_medium_applycoupon.jpg");
                        padding-top: 100%; /* height/width of image */
                }
               
                .resp_img #coupon_invalid {
                        background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_medium_coupon_invalid.jpg");
                        padding-top: 8%; /* height/width of image */
                }
               
                .resp_img #proceed_checkout {
                        background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_medium_checkout.jpg");
                        padding-top: 25%; /* height/width of image */
                }
               
                .resp_img #no_payment {
                        background-image: url("http://www.mmogmart.com/media/wysiwyg/ebay_redeem/mmogmart_medium_nopayment.jpg");
                        padding-top: 20%; /* height/width of image */
                }
        }













0 0