Created
April 16, 2013 05:12
-
-
Save binnng/5393529 to your computer and use it in GitHub Desktop.
display: run-in,追加到后一个block元素的里面
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> | |
| <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