From: "高莉" <ga...@soufun.com>
Date: Tue, 13 May 2008 19:13:13 +0800
Local: Tues, May 13 2008 7:13 am
Subject: Re: [UCD] Re: 答复: [UCD] Re: 答复: [UCD] 大家谁那有css图片垂直居中好用的代码
谢谢大家了,但暂时还没有找到好的方法。
高莉 搜房家居 高莉 tel: 010-59306812
2008-05-13
发件人: xukun
请问一下,怎么发新的帖子呢/??
----- Original Message -----
From: "Mogly" <mogly...@gmail.com > To: "UCDChina" <UCDChina@googlegroups.com > Sent: Tuesday, May 13, 2008 5:29 PM Subject: [UCD] Re: 答复: [UCD] Re: 答复: [UCD] 大家谁那有css图片垂直居中好用的代码 > 这里有个办法可以借鉴下:
> On 5月13日, 下午4时20分, "roy zhu" <royhouse0...@gmail.com > wrote:
> > 在08-5-13,moneya <money...@gmail.com > 写道:
> > > 对哦。还得问明情况,是什么样的图片,知道尺寸嘛?附件图片的效果是对还是不对。曾经在淘宝的ued论坛上,看到过相关的css解决方法
> > > *发件人:* UCDChina@googlegroups.com [mailto:UCDChina@googlegroups.com] *代表 *
> > > 想垂直居中
> > > 有个办法
> > > 1. css 中直接使用expression 来控制 耗资源 大量图片不建议使用
> > > 2.css 中 使用 display:table-cell; 不过似乎每个版本的IE支持情况都不太一样 hack比较多
> > > 3.利用IE layout 技术 简单来说就是 绝对定位居中 不过不适合图片不定长宽情况
> > > 4.使用JS 不过需要渲染时间
> > > 5. 最简单的办法 图片先使用缩略图缩小在固定大小 然后使用背景居中定位 background:url(imgurl) no-repeat
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||