English 中文(简体)
CSS3 文件标签, 底部有嵌入角
原标题:CSS3 File Tab with Inset Corners on the Bottom
  • 时间:2012-05-24 13:44:47
  •  标签:
  • css

"https://i.sstatic.net/8Qt7F.png" alt="圆角图像"/>

嗨 嗨 嗨 嗨 你好 你好 你好 你好 你好 Hi, Hi, Hi, Hi, Hi, Hi, Hi,

有人能帮我在以下Css3中创建以下提到的设计吗? 我试过以下的属性,但还是有问题

background:#c6d92d;
height: 5em;
width: 20em;
-moz-border-radius: 1em 4em 1em 4em;
border-radius: 5em 5em 1em 1em;
padding:20px;

谢谢 谢谢

问题回答

要做到这一点,你需要不止一个迪夫。

您必须把另外两个divs( 左边一个, 右边一个) 白色, 半径在黑色背景上方 。

这是我在网站http://dystroy.org/re721/ (点击“Toutes les recettes”)上取得的效果。

你做它这样:

        _________
       /         
div C |  div A    |  div B
     /            

C和B是白色div,覆盖100%黑背景的细胞(只有在边界-半径为0的情况下才明显可见)。

在这种情形下,主右侧的div有以下各点:

#divB {
background-color: white;
border-radius: 0 0 0 10px;
}

我的终极效果是:

""https://i.sstatic.net/6TNN6.png" alt="此处的内置图像描述"/"

我的"DivB"应该能说明 哪里是白在黑上 哪里是黑在白上 哪里是黑在白上

""https://i.sstatic.net/tAbSz.png" alt="此处输入图像描述"/ >

(如你所见,我发现更容易用一张桌子来拼写这些, 但你可能不用一张桌子就可以)

The properties you are looking for are: border-top-left-radius and border-top-right-radius
http://www.css3.info/preview/rounded-border/





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

Drop down background url in Safari Issue

selectBox.selectCSS { background: url(/Images/replacementSelectBackground.png) top left no-repeat height:auto; } I have an issue in Safari only where the image is not rendering on top ...

CSS specific for Safari

How do you target specifically safari in css with styles?

Aligning textarea in a form

Ive used the following css code to align my form elements: form { position:relative; } form input { position:absolute; left:11em; } However, the textarea element is not aligned correctly with the ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

CSS problem with page footer

I have defined my page footer in the css file as: #footer { position: absolute; height: 50px; text-align: center; background: #66CCCC; bottom: 0px; left: 0px; width: 100%; height: ...

热门标签