|
mcmwhfy
Joined: Wed Aug 17, 2011 9:20 am Posts: 6
|
 Re: It's possible that the pie.htc to work with wicket 2.1
That was a small example, I already used pie.htc in many forms but not worked for me, maybe because the app. is using a apache server...anyway I found a new way to have border radius with PIE.js and this function: $(document).ready(function(){ if (window.PIE) { $('.loginContent').each(function() { PIE.attach(this); }); }
});
Work almost perfect on IE7-8 but I have a big problem with IE6 because the background becomes black and few problems with backgrounds on ie7-8. for example if I put a border radius for a box only border take radius position but not the back. For an input with gradient color if I use radius will affect background.
This is the css: /* --------------------- LOGIN ---------------- */ .loginContent { background:-moz-linear-gradient(top, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.2)), color-stop(100%,rgba(0,0,0,0))); background: -webkit-linear-gradient(top, rgba(0,0,0,0.2) 0%,rgba(0,0,0,0) 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, rgba(0,0,0,0.2) 0%,rgba(0,0,0,0) 100%); /* Opera11.10+ */ background: -ms-linear-gradient(top, rgba(0,0,0,0.2) 0%,rgba(0,0,0,0) 100%); /* IE10+ */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#33000000', endColorstr='#00000000',GradientType=0 ); /* IE6-9 */ background: linear-gradient(top, rgba(0,0,0,0.2) 0%,rgba(0,0,0,0) 100%); /* W3C */ width: 450px; text-align: center; border: 2px solid #CDCDCD; border-radius:20px; -webkit-border-radius: 20px; -moz-border-radius: 20px; padding-bottom:10px; /* --------------------- LOGIN ---------------- */
Thank you in advance!
|