当我的网站突然间没有任何标签时,我的网站工作得非常完美。或#突然停止在我正在处理的网站上工作(http://cravinthe.server300.com)。
我已经尝试将它直接放入没有样式表的头部,这似乎也不起作用。这发生在body,a等上。这让我发疯,我无法弄清楚发生了什么。
我不知道这是否会有所帮助,但这是我的CSS:
body {margin:0 auto;width:100%;background-color:#e8f4fc;overflow-x: hidden;}
这是我的HTML:
<?php /** Home Page */ ?>
<!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 7) | !(IE 8) ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title>Cravin The Cookie 2013</title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/style.css" />
<link href='http://fonts.googleapis.com/css?family=Lilita+One' rel='stylesheet' type='text/css' />
<script src="<?php echo get_template_directory_uri(); ?>/js/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/jquery-1.3.2.min.js"></script>
<?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?>
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
<body>
<div id="header">
谢谢!
答案 0 :(得分:0)
style.css
中有错误 - 删除“}”
@font-face {
font-family: 'Omnes_GirlScoutsRegular';
// ...
} // <--- remove "}"
font-family: 'Omnes_GirlScoutsSemibold';
// ...
}
body {margin:0 auto;width:100%;background-color:#e8f4fc;overflow-x: hidden;}