Created
January 19, 2017 11:40
JS Bin // source http://jsbin.com/yopicojivi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.wrap{ | |
height:200px; | |
width:400px; | |
padding-top:20px; | |
border:1px solid red; | |
position:relative; | |
} | |
.btn{ | |
width:60px; | |
position:absolute; | |
right:10px; | |
} | |
.search_div{ | |
position:absolute; | |
left:10px; | |
right:80px; | |
} | |
.search_input{ | |
width:100%; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="wrap"> | |
<div class="search_div"> | |
<input class="search_input"/> | |
</div> | |
<button class="btn">确定</button> | |
</div> | |
<script id="jsbin-source-css" type="text/css">.wrap{ | |
height:200px; | |
width:400px; | |
padding-top:20px; | |
border:1px solid red; | |
position:relative; | |
} | |
.btn{ | |
width:60px; | |
position:absolute; | |
right:10px; | |
} | |
.search_div{ | |
position:absolute; | |
left:10px; | |
right:80px; | |
} | |
.search_input{ | |
width:100%; | |
}</script> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.wrap{ | |
height:200px; | |
width:400px; | |
padding-top:20px; | |
border:1px solid red; | |
position:relative; | |
} | |
.btn{ | |
width:60px; | |
position:absolute; | |
right:10px; | |
} | |
.search_div{ | |
position:absolute; | |
left:10px; | |
right:80px; | |
} | |
.search_input{ | |
width:100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment