首页 > typecho移植模板时js和css无效

typecho移植模板时js和css无效

移植html5up的一个响应式模板,js和css都无效,请问是为什么?

header.php:

<!DOCTYPE HTML>
<html>
   <head>
      <title>温 柔 的 围 困</title>
      <meta http-equiv="content-type" content="text/html; charset=utf-8" />
      <script src="<?php $this->options->themeUrl('js/jquery.min.js'); ?>"></script>
      <script src="<?php $this->options->themeUrl('js/jquery.poptrox.min.js'); ?>"></script>
      <script src="<?php $this->options->themeUrl('js/skel.min.js'); ?>"></script>
      <script src="<?php $this->options->themeUrl('js/init.js'); ?>"></script>
      <noscript>
         <link rel="stylesheet" href="<?php $this->options->themeUrl('css/skel.css'); ?>" />
         <link rel="stylesheet" href="<?php $this->options->themeUrl('css/style.css'); ?>" />
         <link rel="stylesheet" href="<?php $this->options->themeUrl('css/style-xlarge.css'); ?>" />
      </noscript>

   </head>
   <body id="top">
      <!-- Header -->
         <header id="header">
            <a href="#" class="image avatar"><img src="<?php $this->options->themeUrl('images/avatar.jpg'); ?>" alt="" /></a>
            <h1><strong>Silhouette</strong><br />
            </h1>
         </header>

      <!-- Main -->
         <div id="main">


自己解决
问题应该处在init.js文件里,该文件里对css也进行了引用,此处相对路径的引用出现问题,改成绝对路径后正常


<noscript>去掉,并确认目录是否正确

【热门文章】
【热门文章】