在一个段落中居中一个图像 [英] Centering an image in a paragraph

查看:109
本文介绍了在一个段落中居中一个图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种纯粹的CSS方式来将文本的一个段落中的图像居中,所以文本在图像的两侧包装。

I am looking for a purely CSS way to center an image within a paragraph of text so the text wraps on both sides of the image.

Ideely the image  |-----| would be placed
before or after   |-img-| the text within
the code structure|-----| and the text 
would wrap around the image.


推荐答案

找到一个工作得很好的答案:
http://www.alistapart.com/articles/crosscolumn/

Found an answer that works quite well available at: http://www.alistapart.com/articles/crosscolumn/

这篇关于在一个段落中居中一个图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆