W3C home > Mailing lists > Public > public-html-ig-zh@w3.org > December 2011

Re: [CSS] 表格上用圓角

From: 魏銘廷 <mwei@lxde.org>
Date: Thu, 1 Dec 2011 18:39:41 +0800
Message-ID: <CAJkNRTEq4BCVHZCSxB=iv0=2Gt_1zUOirka51ryvkP15NN7reQ@mail.gmail.com>
To: 中文HTML5同樂會ML <public-html-ig-zh@w3.org>
我忘了附上 (2) 的範例:
(這個例子在 Webkit 上面會變成圓角框,但是在 Gecko 上面會變成直角框,就標準而言 Gecko 是對的,但是我要的是 Webkit 的效果)
<div style="display:table;border-radius: 50px; overflow: hidden;">
  <div style="display:table-row;">
    <div style="display:table-cell;background:#f00;width:300px;height:300px;">
    </div>
  </div>
</div>

2011/12/1 Yao Wei (魏銘廷) <mwei@lxde.org>:
…



-- 
Yao Wei
Received on Thursday, 1 December 2011 10:40:36 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:43:49 UTC