Created
October 15, 2014 02:00
-
-
Save zdying/8e9427b25fc325d09044 to your computer and use it in GitHub Desktop.
两拦布局右侧宽度固定-左侧自适应
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
<html> | |
<head> | |
<title>两拦布局右侧宽度固定-左侧自适应</title> | |
<style media="screen"> | |
.con{width: 90%; overflow:hidden; border:1px dashed red} | |
.right{float: right; width:200px; margin-left:-200px; height:400px; background: green} | |
.left{float:left; width:100%;} | |
.main{margin-right:200px; height:500px; background: orange} | |
</style> | |
</head> | |
<body> | |
<div class="con"> | |
<div class="left"> | |
<div class="main"> | |
</div> | |
</div> | |
<div class="right"> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment