Wordpress未加載我的CSS文件。樣式表上有一個以標題圖片爲中心的項目,但它不會。它甚至不會將它保留爲100px。我究竟做錯了什麼?我可以嘗試什麼?樣式表不要在WordPress中出現
<head>
<title><?php echo $title; ?></title>
<link rel="stylesheet" href="/style.css" type="text/css" media="screen" />
</head>
<body>
<center><img id="image" src="http://www.passionatemedia.ca/wp-content/uploads/2014/08/cropped-top-banner.jpg" width="950"/></center>
<center><img id="image" src="http://www.passionatemedia.ca/wp-content/uploads/2014/08/navigation.jpg" width="950" /></center>
<!-- end header -->
EDIT增加的CSS
#image {
margin-left:500px;
display:block;
}
#headerImg {
margin-left:auto;
margin-right:auto;
}
仍無法正常工作:NEW CODE
HTML/PHP
<head>
<title><?php echo $title; ?></title>
<link href="<?php bloginfo('template_directory'); ?>/style.css" rel="stylesheet">
</head>
<body>
<div id="headerImg">
<img src="<?php bloginfo('template_directory'); ?>/images/top-banner.jpg" width="950"/>
</div>
<!-- end header -->
CSS
div.headerImg {
margin:0px;
margin-left:auto;
margin-right:auto;
width:950px;
}
幫助任何人?
那些中心標籤不在FTP中的代碼中。我只是錯誤地添加了它們。 – SereneTheif 2014-08-30 02:25:07