Created
December 7, 2016 05:33
-
-
Save MOOOWOOO/4ad7e4622453786fda1b199be0b89216 to your computer and use it in GitHub Desktop.
titlebar浮动,下滑时保持在顶部
This file contains 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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<style type="text/css"> | |
#topmenu | |
{top:0; | |
width:100%; | |
position:fixed; | |
padding:10px; | |
text-align:center; | |
font-weight:bold; | |
background:#ED9F30} | |
</style> | |
</head> | |
<body> | |
<div id="topmenu"> | |
title | |
</div> | |
<div style="height:50px"> | |
</div> | |
<div style="height:5000px"> | |
content | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment