+ jQuery Corners 0.3+ | ||||
+ | + | + | + | + |
+ |
+ This jQuery plugin will easily create beautifully rounded corners. + No images or obtrusive markup necessary. +Architectural features:
+
+
+
| + |
+ Works with: +
| + |
+ | + | + | + | + |
+ |
+ <div style="background-color:#acc; padding:5px" class="rounded">
+ Simple Example
+ </div>
+ <script>$(document).ready( function(){
+ $('.rounded').corners();
+ });</script>
+
+
+ <div style="background-color:#acc; padding:10px" class="rounded">
+ Example with different x and y sizes.
+ </div>
+ <script>$(document).ready( function(){
+ $('.rounded').corners("30px 10px");
+ });</script>
+
+
+ <div style="background-color:#acc; padding:10px" class="rounded {10px}">
+ class="rounded {10px}"
+ </div>
+ <script>$(document).ready( function(){
+ $('.rounded').corners("4px");
+ });</script>
+
+
+ <a href="javascript:" onclick="alert('Hello, World!')" class="rounded {transparent} button">
+ Press
+ </a> for a greeting.
+
+
+ Press
+ for a greeting.
+ <form action="?">
+ <input type="submit" value="Submit" class="button">
+ <input type="submit" value="Submit" class="rounded {transparent} button">
+ <input type="button" value="Javascript" class="button" onclick="alert('OK!'); return false;">
+ <input type="button" value="Javascript" class="rounded {transparent} button" onclick="alert('OK!'); return false;">
+ </form>
+
+
+
+ a.rounded, .button {
+ outline: none;
+ border: none;
+ text-decoration: none;
+ cursor: pointer;
+ white-space: nowrap;
+ vertical-align: middle; /* or top */
+ display: -moz-inline-box;
+ display: inline-block;
+ overflow: visible; /* IE6 form button fix */
+ }
+ .button {
+ color: #000;
+ background-color: #acc;
+ padding: 5px 7px;
+ }
+ .button:hover {
+ background-color: #cee;
+ }
+
+