Rounded corners in MS IE 7
How do I get rounded corners in MSIE7? (and cross-browser, as a bonus, but IE7 is vita开发者_高级运维l)
Can I do it without extra images?
Do I need a bunch of images for different text box/table sizes?
Update: This is actually important, now that I think of it ...
What if I am generating my HTML from PHP and it can be dynamic, so I can't really know the size?
I'd recommend using CSS3 styling and then CSS3PIE. Works like a charm!
Similar to Ian's answer, one possibility is to use CSS3's border-radius, then include CurvyCorners. You can do it without images -- that is, you don't need to provide images to make either of the solutions mentioned here work.
You can have CSS round corners on any element of any width/height. There are numerous solutions/workarounds for IE. Some require JavaScript. Some use VML wrapped in .htc files. Some use multiple images. Numerous techniques are discussed here:
- CSS-Discuss - Rounded Corners
- CSS Rounded Corners 'Roundup' -- recommended reading
精彩评论