很抱歉问这种类型的问题。但我想知道我有一个Parent Divwithheight和widthas100px它看起来像正方形。有没有一种方法可以单独自定义宽度,例如top-width和bottom-width
例如
width适用于left to right并且height适用于top to bottom
Iftop-width is zero和bottom width is 100,height is 100那么它看起来像triangle
Here is the FIDDLE
我想用不同的形状做同样的方式。是否有可能在css中实现这一点。任何建议都会很棒。