+ -
当前位置:首页 → 问答吧 → jquery 外部引入 的关于background url() 属性无效,其它可以;background url()放入页面style内就可以

jquery 外部引入 的关于background url() 属性无效,其它可以;background url()放入页面style内就可以

时间:2011-07-14

来源:互联网

如题:

作者: zwliu_2004   发布时间: 2011-07-14

你的jquery代码是怎么样的?

作者: aspwebchh   发布时间: 2011-07-14

应该跟juqery无关,我把注释js注释掉也是一样:例如:
<style type ="text/css">
  @import url("../App_Themes/default/gridtable.css");
</style>
<style type ="text/css">
background:url("背景图片路径")//有效
</style>
其中定义的关于
border:solid 1px #ccc;
background:url("背景图片路径");
其中 background:url("背景图片路径");//无效果
  border:solid 1px #ccc;//有效

如果把 background:url("背景图片路径");//单独放入

作者: zwliu_2004   发布时间: 2011-07-14