我需要为IE8和所有主流浏览器提供弧形边框CSS。目前我正在尝试使用CSS PIE
jsfiddle demo是here。但我建议回答者下载PIE.htc文件格式here并尝试将HTML作为独立页面以在IE8中获得真正的效果。
我的问题是包含“感谢您注册”文本的<td>
在jsfiddle的IE8中没有弯曲。如果我将它作为HTML页面运行,它在IE8中是弯曲的,但蓝色背景与“感谢您注册”<td>
重叠(但它的背景是“#f2f2f2”)。
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin:0px; padding:0px;">
<tr>
<td> </td>
<td style="width: 60%; text-align: center;background: #0067C8;">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td colspan="3" style="height: 50px; background-color: #262626; width:100%; text-align: left;">
<img src="twitter_logo.png" width="200" height="50" alt"Twitter" />
</td>
</tr>
<tr>
<td colspan="3" style="height: 25px;"> </td>
</tr>
<tr>
<td style="width:3%;"> </td>
<td style="width: 94%; background-color: #f2f2f2; height: 400px; font-family: arial; font-size: 30px; color: #2DB8ED; text-align: center; border: 2px solid #bcbcbc;text-align: center;-webkit-border-radius: 10px;-moz-border-radius: 10px;border-radius: 10px; behavior: url(PIE.htc);">
Thank you for registering
</td>
<td style="width:3%;"> </td>
</tr>
<tr>
<td colspan="3" style="height: 25px;"> </td>
</tr>
</table>
</td>
<td> </td>
</tr>
</table>
答案 0 :(得分:1)
您是否尝试过http://jquery.malsup.com/corner/ jquery插件添加曲线?
$(function () {
$('table table tr:eq(2) td:eq(1)').corner();
});
答案 1 :(得分:1)
我认为这主要是因为z-index存在问题。
点击此处了解更多详情。 general issues encountered when using PIE
答案 2 :(得分:1)