原文地址:http://www.devwebpro.com/25-rounded-corners-techniques-with-css/
* This post is regularly updated. *
Rounded corners is one of the most popular and frequently requested CSS techniques even the father of internet Google also launch the rounded corners style markup with her Google Adsense and let users to custom their ads recently. Actually, there are a lot of methods and techniques to create rounded corners with Cascading Stylesheets. Some are quite simple just need pure CSS, and a part of them need 2 to 4 background corner images and Javascript. So i select some quality and usable rounded corners with CSS techniques for you to have the best choices.
Note: Here are some additional related articles on DevWebPro you should also take a look at:
- Advantages of Using Corners Without Images
- Smooth Your Design and Round Those Corners!
Techniques
ThrashBox – create rounded-corner boxes with visual flare and the absolute minimal amount of semantically correct markup.
Even More Rounded Corners With CSS – nice technique with fluid rounded corner dialogs and support for borders, alpha transparency throughout, gradients and patterns.
DomCorners – a very simple technique for getting rounded corners.
virtuelvis.com Rounded corners in CSS – allow you to retrofit this to existing designs without altering any markup.
Transparent custom corners and borders version 2 – a technique for creating custom corners and borders with optional alpha transparency.
CSS Teaser Box with rounded corners – by Roger Johansson, the same author of Transparent custom corners and borders version 2.
News List – was designed to display links to recent news.
CSS Liquid Round Corners – a re-usable rounded box, note that it needs total 6 images for wrap the corners.
Anti-aliased Nifty Corners – based on Nifty Corners and modified by Steven Wittens.
Simple Box by tedd – another simple rounded corners.
CSS and round corners making accessible menu tabs – decent rounded corners style menu tabs technique.
CSS and round corners borders with curves – make a rounded corners borders with curves.
Airtight Corners – produce a box with rounded corners using only one image, and off-setting that image for each corner.
Mountaintop Corners – easier way for creating decent rounded corners.
Editsite Rounded Corners – need a javascript to create the corners.
Create a rounded block or design with CSS and XHTML – easily create a rounded block.
Resizable box with freely stylable corners and surface – re sizable rounded corners box.
Smart Round Corners – a practical solution to uses small images for markup the corners.
Lean and Clean CSS boxes – need 2 images to wrap the header and box.
Broader Border Corners – a quick and easy recipe for turning those single-pixel borders.
Snazzy Borders – based on Nifty Corners By Alessandro Fulciniti
Rounded corners in CSS by Adam Kalsey – requires 4 corners images.
curvyCorners – a free JavaScript program that will create on-the-fly rounded corners for any HTML DIV element, that look as good as any graphically created corners.
Nifty Corners – a solution based on CSS and Javascript to get rounded corners.
quinncrowley.com – based upon a combination of pixy and Kalsey
Rounded Corners Generators
Online rounded corners generators, Rocks!
http://www.roundedcornr.com/ – the herald of rounded corners generator tool.
http://www.spiffycorners.com/ – simple way to generate the CSS and HTML you need to create anti-aliased corners without using images or Javascript.
http://tools.sitepoint.com/spanky/ – an experimental technique for using only CSS to produce ’round-cornered content boxes’ with semantically pure markup.
http://spiffybox.com/ – another project by the owner of Spiffy Corners.
Tutorials
There are quite a lot of CSS rounded corners tutorials, it is impossible to post all articles here. So selection is necessary, here is some you may feel interesting.
Rounded Corners with CSS and JavaScript by Simon Willison
Rounded corners are one of the most frequently requested CSS techniques. As with many things in CSS, there are various ways in which this problem can be approached. In this article, I’ll look at the pros and cons of some common techniques and introduce a new technique that utilises both CSS and JavaScript.
Rounded Corners without Images: A Nifty Corners Inspiration
What is it all about? It’s a method of creating rounded corners of an element without using images, just with a piece of JavaScript and few drops of CSS. I like rounded corners, but the necessity to create for every diameter and every combination of foreground and background color 4 images for me as the designer and to download them for the user makes me use the square ones in most cases.
CSS Design: Creating Custom Corners & Borders by Søren Madsen
We’ve all heard the rap:
“Sites designed with CSS tend to be boxy and hard-edged. Where are the rounded corners?â€
Answer: the rounded corners are right here. In this article, we’ll show how customized borders and corners can be applied to fully fluid and flexible layouts with dynamic content, using sound and semantically logical markup.
Rounded Corner Boxes the CSS3 Way by Andy Budd
If you’ve been doing CSS for a while you’ll know that there are approximately 3,762 ways to create a rounded corner box. The simplest techniques rely on the addition of extra mark-up directly to your page, while the more complicated ones add the mark-up though DOM manipulation.
*Updates
CSS Rounded Corners ‘Roundup’ – one more great list by Smiley Cat .