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