code_junkie

JQuery Rounded Corners in Internet Explorer (IE) messed up

Nov 11th, 2011
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. $(document).ready(function(){
  2. $("table.ms-navheader td").corner("top");
  3. });
  4.  
  5. <html>
  6. <head>
  7. <script type="text/javascript" src="jquery-1.2.6.js"></script>
  8. <script type="text/javascript" src="jquery.corner.js"></script>
  9. <script type="text/javascript">
  10. <!--
  11.  
  12. $(document).ready(function()
  13. {
  14. $("div").corner("top");
  15. $("td").corner();
  16. });
  17.  
  18. //-->
  19. </script>
  20. </head>
  21. <body>
  22. <table>
  23. <tr>
  24. <td style="background-color: blue">
  25. TD that will be messed up.
  26. </td>
  27. </tr>
  28. </table>
  29. <div style="background-color: green">
  30. divs don't get messed up.
  31. </div>
  32. </body>
  33. </html>
  34.  
  35. $('.selected').css('background-color', '#3296C0');
  36.  
  37. $('#top-nav li a').hover(function(){
  38. $(this).corners('top');
  39. });
Add Comment
Please, Sign In to add comment