【问题标题】:UniformJS Causes Fields to DissappearUniformS 导致字段消失
【发布时间】:2012-12-07 01:04:50
【问题描述】:

我最近在网页上放置了 UniformJS (http://uniformjs.com/) 脚本,以设置 SELECT 和 UPLOAD 字段的样式。我将脚本设置为影响这些字段,但是,现在这些字段已经完全消失了。以下是我设置脚本的方式:

<script type="text/javascript" charset="utf-8">
  $(function(){
    $("input, select").uniform();
  });
</script>

这是网页(请注意缺少 Resume 和 Country 字段,以及一些单选框): http://goo.gl/aJKv1

我进入 UniformJS 样式表并将所有文件路径更改为绝对文件,以确保这不是链接错误 - 但仍然没有运气。

我对 Javascript/jQuery 还是非常陌生,但我已经尝试了所有我能想到的。

以前有人遇到过这个问题吗?

【问题讨论】:

    标签: jquery forms wordpress


    【解决方案1】:

    缺少 css。

    这是控制台输出: Failed to load resource: the server responded with a status of 404 (Not Found) http://www.mcfaddengavender.net/newmg/contact/careers/www.mcfaddengavender.net/newmg/wp-content/themes/custom/js/css/uniform.default.css

    你忘记了http://

    将您的链接更改为:
    &lt;link rel="stylesheet" href="http://www.mcfaddengavender.net/newmg/wp-content/themes/custom/js/css/uniform.default.css" type="text/css" media="screen" charset="utf-8"&gt;

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-09-02
      • 1970-01-01
      • 1970-01-01
      • 2013-07-18
      • 1970-01-01
      • 1970-01-01
      • 2012-07-27
      相关资源
      最近更新 更多