CSS 圆角 Div
我一直在谷歌上搜索带有 css div 的圆角..但发现非常混乱的东西..有些仍在使用圆角图像并将它们放在四个角上...
有人可以帮助使用简单的 CSS 代码来实现这一点。 ..或者可以用 jQuery 来实现吗
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...
can somedoby help with with a simple CSS code for this... or can it be attained with jQuery
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
支持边框半径的 CSS 方式如下:
CSS:
这将告诉 Mozilla、Webkit 和标准阅读浏览器(据我了解 FF4、Chrome 6 和 IE9 将在没有浏览器前缀的情况下阅读)以任意像素圆角你认为合适的半径:)
在这些 CSS 选项可用之前就使用了图像,并且文章仍然存在。还有 jQuery 解决方案,例如支持 IE 的 Curvy Corners 脚本。
The CSS way to support border radius is as follows:
CSS:
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 :)
Images were used before these CSS options were available, and the articles are still there. There are also jQuery solutions such as the Curvy Corners script which does support IE.