我试图在IE中使用CSS3 PIE附加行为制作圆角.
这是我的CSS:
.fieldRow {
clear:both;
padding: 0;
margin: 0;
overflow: hidden;
line-height:17px;
}
.alternate, .rowMousedOver {
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
behavior: url(PIE.php);
position: relative;
}
.rowMousedOver{
background-color: #E2E66D !important;
}
.alternate {
background-color: #FCFEE8;
}
Run Code Online (Sandbox Code Playgroud)
这是一些示例HTML:
<div class="fieldRow alternate">
<div class="label"><label id="title_label" for="title"> Title: </label></div>
<div class="fieldWrapper required text">
<div class="cellValue"><input type="text" onchange="validateField(this)" name="title" id="title" value="Tax Free Savings Accounts" disabled=""></div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
并通过javascript我添加rowMousedOver到fieldRow它徘徊的时候.
知道为什么这不起作用吗?我也尝试过使用behavior: url(PIE.htc),但也没有运气.
谢谢!