Mobile-Adaptive Layout Demo

Source: Internet
Author: User

The prototype is as follows:

Requirements are as follows: adapt to various models

The source code is as follows:

<! DOCTYPE HTML >



<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
<meta name= "viewport" content= "Width=device-width, initial-scale=0.0, User-scalable=no, minimum-scale=1.0, maximum-scale=1.0 "/>
<!--<link rel= "stylesheet" type= "Text/css" href= "Css/main.csss"/>-->
<style>
. container {
border:1px solid #F0F1F1;
-webkit-box-shadow:0px 3px 3px #c8c8c8;
-moz-box-shadow:0px 3px 3px #c8c8c8;
box-shadow:0px 3px 3px #c8c8c8;
}

. Search {
height:42px;
Margin:0 20px;
}

. search_left {
Float:left;
margin:14px 7px 5px 11px;
width:8px;
height:8px;
border-radius:50px;
BORDER:3PX solid orangered;
font-size:12px;
Text-align:center;
line-height:30px;
}

. search_input {
Float:left;
}

. search_input Input {
Border:none;
height:30px;
margin-top:5px;
}

. search_right {
Float:right;
width:20px;
height:20px;
margin:9px 17px 5px 10px;
}

. search_right img {
width:100%;
height:100%;
}

. Start {
height:42px;
margin:80px 30px 40px 30px;
border:1px solid #F0F1F1;
-webkit-box-shadow:0px 3px 3px #c8c8c8;
-moz-box-shadow:0px 3px 3px #c8c8c8;
box-shadow:0px 3px 3px #c8c8c8;
Background: #ff4343;
Color: #FFFFFF;
Text-align:center;
line-height:40px;
border-radius:50px;
}

. back {
height:42px;
margin:0px 30px;
border:1px solid #F0F1F1;
-webkit-box-shadow:0px 3px 3px #c8c8c8;
-moz-box-shadow:0px 3px 3px #c8c8c8;
box-shadow:0px 3px 3px #c8c8c8;
Background: #FFFFFF;
Color: #1E1F20;
Text-align:center;
line-height:40px;
border-radius:50px;
}
</style>
<title> University Map </title>


<body>
<div class= "Container" >
<div class= "Search" style= "border-bottom:1px solid #F0F1F1;" >
<div class= "Search_left" ></div>
<div class= "Search_input" ><input type= "text" placeholder= "Location failed, manual settings" ></div>
<div class= "Search_right" ></div>
</div>

<div class= "Search" >
<div class= "Search_left" ></div>
<div class= "Search_input" ><input type= "text" placeholder= "Elevator Room" ></div>
<div class= "Search_right" ></div>
</div>
</div>

<div class= "Start" > Start planning route </div>
<div class= "Back" > Return </div>
</body>

Mobile-Adaptive Layout Demo

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.