Jquery iPhone 5s中的角度元素没有滚动
我正在使用AngularJS、Jquery、HTML5将网站嵌入DOM元素。请参见下面的代码:Jquery iPhone 5s中的角度元素没有滚动,jquery,html,css,iphone,angularjs,Jquery,Html,Css,Iphone,Angularjs,我正在使用AngularJS、Jquery、HTML5将网站嵌入DOM元素。请参见下面的代码: digibin_app.directive("displayFile", function () { var updateElem = function (element) { return function (displayFile) { element.empty(); var objectE
digibin_app.directive("displayFile", function () {
var updateElem = function (element) {
return function (displayFile) {
element.empty();
var objectElem = {}
if (displayFile && displayFile.type !== "") {
if (displayFile.type === "pdf") {
objectElem = angular.element(document.createElement("object"));
objectElem.attr("data", displayFile.fileUrl);
objectElem.attr("type", "application/pdf");
}
else if (displayFile.type === "html" ) {
objectElem = angular.element(document.createElement("object"));
var childHeight = parseInt(window.innerHeight);
// problem is here in below line
objectElem.attr("style", "width:100%;height:"+childHeight+"px;margin:0px;");
objectElem.attr("data", displayFile.fileUrl);
objectElem.attr("type", "text/html");
}
else {
objectElem = angular.element(document.createElement("img"));
objectElem.attr("src", displayFile.fileUrl);
}
}
element.append(objectElem);
};
};
return {
restrict: "EA",
scope: {
displayFile: "="
},
link: function (scope, element, attrs) {
scope.$watch("displayFile", updateElem(element));
}
};
});
数据、页面呈现、功能等一切都很好。唯一困扰我的是,对于长页面,IPHONE 5S上并没有显示滚动条。在安卓系统上,它的工作非常好
我尝试的是:
请帮帮我。非常感谢您的帮助。不显示滚动条吗?在你开始滚动之前,它们通常是隐藏的。你还能滚动吗?@MathewBerg-Nope。仍然没有滚动条。不显示滚动条?在你开始滚动之前,它们通常是隐藏的。你还能滚动吗?@MathewBerg-Nope。还是没有卷轴。