1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<!DOCTYPE html> <html> <head> </head> <body> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<style type='text/css'>#tests div { padding: 1.5em; margin: 1em 0; behavior: url(/pie/PIE.htc); position: relative; background: #CCF; overflow: hidden; } </style>
<div id="tests"> <h2>Uniform</h2> <div>border-radius: 10px;</div> <div>border-radius: 1em;</div> <div>border-radius: 20%;</div>
<h2>Different per corner</h2> <div>border-radius: 5px 10px 15px 20px;</div> <div>border-radius: 0.5em 1em 1.5em 2em;</div> <div>border-radius: 10% 20% 30% 40%;</div> </div>
<script type='text/javascript'>$(function() { $('#tests > div').each(function() { this.style.cssText += this.firstChild.nodeValue; }); }); </script>
</body> </html>
|