Javascript 带曲线的css
我正在使用Javascript 带曲线的css,javascript,jquery,css,Javascript,Jquery,Css,我正在使用border radius.htc修复IEs早期版本的问题, 但是警报(e)总是被称为“TypeError:Object expected”请尝试在脚本中使用defer=“defer”这样的标记 OldFunc = window.onload; window.onload = OnLoad; function OnLoad() { try { OnFixFontAndTable(); OldFunc(); } catch (e) {
border radius.htc
修复IEs早期版本的问题,
但是警报(e)
总是被称为“TypeError:Object expected”
请尝试在脚本中使用defer=“defer”
这样的标记
OldFunc = window.onload;
window.onload = OnLoad;
function OnLoad() {
try {
OnFixFontAndTable();
OldFunc();
} catch (e) {
alert(e);
}
}
function OnFixFontAndTable() {
$('.something some').css({
'behavior': 'url(/path/border-radius.htc)'
});
}
IMO不值得为边界半径这样琐碎的事情费心……哦,谢谢你,但是我怎么能在运行时添加“延迟”这个词呢?你难道没有脚本标签吗page@TheosArtise-scriptTag.setAttribute(“延迟”、“延迟”)代码>像这样,我只能编写外部js来完成,我不能编辑源代码。有一个命令可以让我将上面的脚本文件添加到运行的页面中it@TheosArtise-它是对脚本标记的引用(您必须自己以某种方式将脚本标记作为目标,使用var scriptTag=$(“脚本”)
或var scriptTag=document.querySelector(“脚本”)
)
<script type="text/javascript" defer="defer"></script>