大家好我在网站上工作我确定是对的,但是有一个错误导致网站没有出现我的布局我会离开那里
任何人都可以帮我解决这个问题吗?
答案 0 :(得分:0)
让你检查代码 我认为你缺少资产文件,即CSS和javascript文件
答案 1 :(得分:0)
未加载css。右键单击页面 - > “inspect element” - > “console” - >检查那里的错误消息。当然这是CSS没有加载。
答案 2 :(得分:0)
在控制台中没有更多错误,只显示布局 enter image description here
答案 3 :(得分:0)
/*
** jquery.cookie.js
*/
jQuery.cookie = function (key, value, options) {
// key and value given, set cookie...
if (arguments.length > 1 && (value === null || typeof value !== "object")) {
options = jQuery.extend({}, options);
if (value === null) {
options.expires = -1;
}
if (typeof options.expires === 'number') {
var days = options.expires, t = options.expires = new Date();
t.setDate(t.getDate() + days);
}
return (document.cookie = [
encodeURIComponent(key), '=',
options.raw ? String(value) : encodeURIComponent(String(value)),
options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
options.path ? '; path=' + options.path : '',
options.domain ? '; domain=' + options.domain : '',
options.secure ? '; secure' : ''
].join(''));
}
// key and possibly options given, get cookie...
options = value || {};
var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent;
return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null;
};
function selecao(obj, def_texto_padrao){
if(obj.constructor == String){obj = document.getElementById(obj);}
var def_texto = (def_texto_padrao) ? function(text){obj.value += text;} : function(){return false;};
var selecao = {text: "", defTexto: def_texto};
if(document.selection){
var faixa = document.selection.createRange();
if(faixa.text){
selecao.text = faixa.text;
selecao.defTexto = function(text){
faixa.text = text.replace(/\r?\n/g, "\r\n");
}
}
} else if(typeof(obj.selectionStart) != "undefined"){
selecao.text = obj.value.substring(obj.selectionStart, obj.selectionEnd);
selecao.defTexto = function(text){
obj.value = obj.value.substring(0, obj.selectionStart) + text + obj.value.substring(obj.selectionEnd);
return false;
}
} else if(window.getSelection){
selecao.text = window.getSelection().toString();
}
return selecao;
}
function setBBCode(obj, antes, depois){
var selecionado = selecao(obj, false);
selecionado.defTexto(antes + selecionado.text + depois);
$('#'+obj).focus();
}
function setAltBBCode(obj, tipo, objthis){
valor = objthis.value;
var selecionado = selecao(obj, true);
selecionado.defTexto('['+tipo+'='+valor+']' + selecionado.text + '[/'+tipo+']');
objthis.value='';
$('#'+obj).focus();
}
/**
* jquery.tools.min.js