Skip to content

Instantly share code, notes, and snippets.

@fenbox
Created October 28, 2011 01:18
Show Gist options
  • Save fenbox/1321398 to your computer and use it in GitHub Desktop.
Save fenbox/1321398 to your computer and use it in GitHub Desktop.
图文混排,文字与图片右边缘左对齐
/*
<div class="item">
<div class="pic">...</div>
<div class="content">...</div>
</div>
================================
######## -----------------
######## -----------------
######## -----------------
######## -----------------
------
================================
*/
.item .pic { float:left;margin-right:10px; }
.item .content { overflow:hidden;zoom:1; } /* 或用display:table-cell */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment