由于某些原因,此页面在Opera + Safari http://dev.reggi.com/clients/mike2/中不起作用
这是我写的主要代码,我认为它失败了:
/*this script finds the multiples of the box_width and makes that the with of the container so the grid can be centred*/
/*sets variables*/
var box_width= 250 + 5 + 5 + 5 + 5;
/*loads the width when page starts*/
$(document).ready(function(){
var w= $(window).width();
w-= (w-10) % box_width;
if (w<box_width) w= box_width;
$('.variable_window_width').width(w);
});
/*loads the new with onpage resize*/
$(window).bind('load resize', resizeFrame);
function resizeFrame() {
var w= $(window).width();
w-=((w-10) % box_width);
if (w<box_width) w= box_width;
$('.variable_window_width').width(w);
};
$(function(){
$("#grid div").corner("4px");
});发布于 2010-11-22 07:22:39
“行不通”--这不是一个准确的描述。
首先,你应该修复你的CSS和HTML,Opera11根本不能渲染站点的,Dragonfly抱怨道:
dispaly is an unknown property
Line 10:
#inner_site_header_right{float:right;dispaly:inline;text-align:right;padding-rig
---------------------------------------------^和:
Syntax error before comment end ("-->")
Line 15:
//-->
-----^ 下次在来这里之前至少要做一些基本的调试。
Safari我不能测试,但Chrome8似乎可以工作,但话又说回来,我们甚至不知道什么是不能工作。
https://stackoverflow.com/questions/4241009
复制相似问题