简体   繁体   English

CSS圆角Div

[英]CSS Rounded Corner Div

I have been googling for rounded corners with a css div.. but found very cluttered stuff.. some are still using for images of rounded corners and placing them on four corners... 我一直在用css div搜索圆角..但是发现非常混乱的东西..一些仍在使用圆角图像并将它们放置在四个角上...

can somedoby help with with a simple CSS code for this... or can it be attained with jQuery 可以通过简单的CSS代码来获得帮助...或者可以使用jQuery实现

The CSS way to support border radius is as follows: 支持边界半径的CSS方法如下:

CSS: CSS:

.myClass
{
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
     border-radius: 10px;
}

This will tell Mozilla, Webkit and then standards reading browsers (as far as I understand FF4, Chrome 6 and IE9 will read without the browser prefix) to round your corners by whichever pixel radius you see fit :) 这将告诉Mozilla,Webkit以及随后的标准阅读器(据我所知,FF4,Chrome 6和IE9会在没有浏览器前缀的情况下进行阅读)按照您认为合适的任意像素半径进行旋转:)

Images were used before these CSS options were available, and the articles are still there. 在这些CSS选项可用之前就使用了图像,并且文章仍然存在。 There are also jQuery solutions such as the Curvy Corners script which does support IE. 还有一些jQuery解决方案,例如确实支持IE的Curvy Corners脚本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM