- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
这似乎是很多人都遇到过的问题! Link to google search results
有很多答案,我研究了一些比较合理的答案,并修复了页面上的所有 javascript 错误。在 Chrome 中,我没有发现任何错误,但在 IE8 中,我在第 205 行错误中收到无效参数,并且状态下拉列表丢失。我不是 JavaScript 专家,不知道从哪里开始解决这个问题。尤其是涉及浏览器细节时。
如果您查看 JS 中的第 205 行,缺少的字段包括:
if (this.regionSelectEl.options.add) {
this.regionSelectEl.options.add(option);
} else {
this.regionSelectEl.appendChild(option);
}
恰好是页面中缺少的区域(州)选择元素。JS的链接: http://jsfiddle.net/bms85/LKdsq/1/
这可能是什么原因造成的?
编辑:
我发现原因是与精简的最新版本的 modernizer 发生冲突,我正在为 html5 polyfill 使用 modernizer。仍在尝试调试冲突。
最佳答案
我在使用 Magento/Modernizr 网站时也遇到过这个问题,Brendan Falkowlski's answer给我指出了一个解决方案。由于他的回答,Modernizr has released 2.6.x它将 html5shiv 更新到 3.6,其中包括针对特定问题的修复。因此,如果您遇到此问题并使用 2.6 之前的 modernizr,更新到最新版本(使用其捆绑的 html5shiv)应该可以解决问题。
关于javascript - 为什么 IE 中的 Magento js/varien/form.js 错误 - js fiddle,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10303770/
改进这个问题: Is it good practice to add own file in lib/Varien/Data/Form/Element folder 接受的答案显示了如何扩展 Vari
这个问题已经有答案了: How to know what class is an object instance of? (php5) (2 个回答) 已关闭 9 年前。 我想要一个简单的代码片段,它
这个问题已经有答案了: How to know what class is an object instance of? (php5) (2 个回答) 已关闭 9 年前。 我想要一个简单的代码片段,它
我需要对以下 Magento 文件进行一些更改: public_html\js\varien\configurable.js public_html\js\varien\product,js 问题是;
嗨,在我的自定义模块中,我使用 cms_page_save_after 事件通过 cms pages 保存更多数据。而在 oberver 中,我得到了无法处理的此类数据。 Varien_Event_O
我正在查看 Magento 源文件,试图理解为什么我无法移动 varien/configurable.js 而不抛出另一个扩展的错误,因此 Google Closure Compiler 缩小了它,但
我有一个使用“core_read”和查询方法调用的存储过程。然后使用 fetchAll(PDO::FETCH_ASSOC) 收集结果。 数据出来的很完美。我可以在数组上执行 foreach,并通过数组
我需要在 Magento 中创建包含少量数据库表的模块。该模块的功能之一是添加多个图像。例如,在管理员的“添加新项目”或“编辑项目”页面上,从左侧我有标签,其中之一是“项目图片”。单击时我希望此选项卡
Entity: line 60: parser error : Opening and ending tag mismatch: config line 28 and confg in /home/
我正在制作一个 Magento 扩展,它在产品 View 页面上调用自定义 JS 文件。此自定义 JS 文件将最后加载,并且需要覆盖/js/varien/product.js 底部的 formatPr
这似乎是很多人都遇到过的问题! Link to google search results 有很多答案,我研究了一些比较合理的答案,并修复了页面上的所有 javascript 错误。在 Chrome
从今天早上开始,我得到了以下信息运行 Magento cronjob 后的 PHP 通知: Undefined index: REQUEST_URI in /htdocs/lib/Varien/Aut
我正在使用 magento 1.7 这里有一些问题我无法理解我创建扩展并在表单中使用图像类型字段当我选择图像然后保存成功但是当我编辑并且没有进行更改点击保存然后我得到了此以下错误您对此有任何解决方案吗
Fatal error: Call to a member function extend() on a non-object in /***/***/public_html/lib/Varien/S
我将 magento 网站从 1.4.1.1 升级到最新版本。 但是当我加载网站时它显示白页。 在 fire bug 中它显示网络服务器错误。 所以我使用 ssh 检查了错误。 tail -f /va
我正在使用 Magento 1.8.0.0,我通过本地主机在 WAMP 服务器上安装了一个测试版本,当我想添加类别时,出现下一个错误: fatal error :在 C:\wamp\www\magen
我是一名优秀的程序员,十分优秀!