边框半径为IE7& IE8 [英] Border-radius for IE7 & IE8

查看:89
本文介绍了边框半径为IE7& IE8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在cakephp工作,想做一些CSS样式。问题出在Internet Explorer。目前我想使CSS边框半径工作正常在IE7& IE8。我使用的css是

I am working in cakephp and want to do some css style. The problem is with Internet Explorer. Currently i want to make css border-radius work properly in IE7 & IE8. The css i am using is

#lastcol
{
    float:left;
    width:240px;
    min-height:630px;
    background-color:#ffffff;
    border-radius:8px 8px 8px 8px;
    padding:15px 15px 15px 15px;
    margin-top:15px;
}

这是一个 div 其边界半径我想让它工作在IE也。对于这个我使用行为:url(/PIE.htc); 。我已经添加了 PIE.js 脚本。我在 #lastcol 中添加行为功能,用于在IE中执行圆角消失。我已经使用这个功能在css为一些段做圆角,这是工作很好,但对于某些情况下,如上所述它不工作。

This is one div whose border-radius i want to make it work in IE also. For this i am using behavior : url(/PIE.htc);. I have already added the PIE.js script. The moment i add the behavior feature in #lastcol for doing rounded corners in IE the background vanishes. I have used this feature for doing rounded corners in css for some segments and this is working good but for certain cases like the above one it is not working.

我不是了解问题是什么。为什么在添加行为之后立即删除背景图片或背景颜色:url(/PIE.htc); 对于某些 div 只有对于其他人,这是工作完美。请提出需要完成的操作。

I am not understanding what the issue is exactly. Why the background image or background color is removed immediately after adding behavior : url(/PIE.htc); for some div only whereas for others this is working perfectly. Please suggest whats needs to be done.

推荐答案

请参阅 http://css3pie.com/documentation/known-issues/

您可能需要添加 position:relative; 到div或给它一个z-index。

You will probably need to add position: relative; to the div or give it a z-index.

这篇关于边框半径为IE7& IE8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆