1

I developed a small site .After I upload my design with doing some coding and functionality it ,on my hosting company web server layout is broken in all the browsers. I mean Some css is loaded properly but some elements and css are not at their places. I checked several times the css files on my local pc and the webserver and they have same content. I find this error might be happen dueto my config.js file , i have loaded my css through my config.js file. here is my website link :uploaded link

It should be displayed and function like this :proper layout link

i found this error on my console

SyntaxError: syntax error   
<!DOCTYPE HTML>

when i remove this i found error in my head tag when i remove it shows error on body tag and same things is going on. any body have idea why this thing happen & how to resolve this ?

4

3 回答 3

4

在此处输入图像描述

在某一方面的变化

<link rel="stylesheet" href="css/skel-noscript.css" />
            <link rel="stylesheet" href="css/style.css" />
            <link rel="stylesheet" href="css/style-desktop.css" />
于 2013-09-16T06:52:52.253 回答
0

我猜你的主页/索引文件的头部分与内页头部分不同。最简单的方法是复制内页标题并粘贴在索引文件中。然后对其进行必要的更改。

请确保所有文件都在一个文件夹中,否则您必须更加小心路径。

马上!您的主页上没有加载任何脚本或样式表。

于 2013-09-16T07:11:42.697 回答
0

终于得到了解决方案。我删除了我的 config.js 文件并将所有 css 直接加载到我的索引页面中。

以前我使用以下代码从 config.js 文件加载所有 css:

    <noscript>
        <link rel="stylesheet" href="css/skel-noscript.css" />
        <link rel="stylesheet" href="css/style.css" />
        <link rel="stylesheet" href="css/style-desktop.css" />
    </noscript>

现在我已经删除了我的 config.js 并将所有 css 直接包含在我的索引页面中,而不是使用<noscript>标签

    <link rel="stylesheet" href="css/skel-noscript.css" />
    <link rel="stylesheet" href="css/style.css" />
    <link rel="stylesheet" href="css/style-desktop.css" />

我真的很感激你们所有人。

于 2013-09-20T05:45:34.037 回答