0 css safari firefox jquery google-chrome
我使用coda-slider并在css文件中更改了面板大小.我这样做是为了将尾声滑块调整到大小窗口.这在Firefox中运行良好,但崩溃了Chrome和Safari.任何人都知道如何解决这个问题?
这是功能
function resizeCentro() {
var alt = (document.height * 0.95) + "px";
var larg = (document.width * 0.77) + "px";
$(".coda-slider").css('width', larg);
$(".coda-slider").css('height', alt);
$(".panel-wrapper").css('width', larg);
$(".panel-wrapper").css('height', alt);
document.getElementById("ifInicio").width = document.width * 0.95;
document.getElementById("ifInicio").height = document.height * 0.95;
document.getElementById("ifInicio").src = "inicio.html";
}
Run Code Online (Sandbox Code Playgroud)
该页面可在http://www.segundafeirafilmes.com.be/prov/INDEX.html中查看
使用moar jQuery:
function resizeCentro() {
$(".coda-slider, .panel-wrapper").width($(document).width() * 0.77;);
$(".coda-slider, .panel-wrapper, #ifInicio").height($(document).height() * 0.95);
$("#ifInicio").width($(document).width() * 0.95);
$("#ifInicio").attr('src', "inicio.html");
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
591 次 |
| 最近记录: |