The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: Mogly <mogly...@gmail.com>
Date: Tue, 13 May 2008 02:29:04 -0700 (PDT)
Local: Tues, May 13 2008 5:29 am
Subject: Re: 答复: [UCD] Re: 答复: [UCD] 大家谁那有css图片垂直居中好用的代码
这里有个办法可以借鉴下:
http://hi.baidu.com/mogly/blog/item/8d94b80e4f40fde437d1223f.html On 5月13日, 下午4时20分, "roy zhu" <royhouse0...@gmail.com> wrote:
> 麻烦,请不要在UCD群讨论这种技术问题。可以问百度叔叔,谷歌阿姨,或加其他的GROUP。
> 在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.
| ||||||||||||||