css在chrome(linux和windows)中不起作用

rcs*_*s20 6 css linux windows firefox css3

我有这个代码:

<style type="text/css">
div {
margin: 100px auto;
width: 0px;
height: 0px;
border-right: 30px solid transparent;
border-top: 30px solid red;
border-left: 30px solid red;
border-bottom: 30px solid transparent;
border-top-left-radius: 30px;
border-top-right-radius: 30px;
border-bottom-left-radius: 30px;
border-bottom-right-radius: 30px;
position: relative;
}
</style>
<div></div>
Run Code Online (Sandbox Code Playgroud)

产生:

haflcircle

在Firefox中,

但在chrome(linux和windows - 没试过mac)我什么都没看到?

Nat*_*e B 15

我相信它实际上是某种错误.如果您将高度和宽度更改为1px,它对我有用.不幸的是,这会留下一点白点,但可以通过将背景更改为红色并将背景剪辑更改为内容来修复此问题.

JSFiddle示例.