Skip to content

Instantly share code, notes, and snippets.

@binnng
Created April 16, 2013 05:12
Show Gist options
  • Select an option

  • Save binnng/5393529 to your computer and use it in GitHub Desktop.

Select an option

Save binnng/5393529 to your computer and use it in GitHub Desktop.
display: run-in,追加到后一个block元素的里面
<!doctype html>
<html>
<style rel="stylesheet">
.inner{
height: 40px;
background-color: #f33;
}
.fir{
background-color: #f90;
display: run-in;
}
.sec{
width: 120px;
}
</style>
<div class="inner fir">里面好舒服</div>
<div class="inner sec">我又不是在外面</div>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment