我相信我正确地在html中为我正在开发的(超基本)wordpress主题提供了一个图像;但它仍然不显示。Img Src正确,但仍然不能在index.php中工作
这种对话:(其中我已经放心的HTML是正确的) Img Src on local computer 显示进程迄今
体的index.php:
<?php
$main_menu_column_top = array(
'theme_location' => 'main-nav-column-top',
'container' => 'nav',
'container_class' => 'alignleft widecol',
'container_id' => 'column-main-nav',
'depth' => 1
);
?>
<div class="leftcolumn">
<div class="logo">
<a href="http://www.petermaurin.com">
<img src="images/pmsplogo.jpg" alt="Peter Maurin Screenprinters"/></a>
</div><!--logo-->
<div>
<ul>
<h1><?php wp_nav_menu ($main_menu_column_top); ?></h1>
</ul>
</div>
</div>
<div class="maincontent">
<?php
if (have_posts()) :
while (have_posts()) :
the_post();
the_title();
the_content();
endwhile;
endif;
?>
</div><!-- maincontent -->
的functions.php:
<?php
register_nav_menus(
array(
'main-nav-column-top' => 'Main Nav, Top of Header',
'sub-nav-column-bottom' => 'Sub Nav, Bottom of Header',
'footer-nav' => 'Footer Menu'
)
);
CSS:
* {
margin: 0;
padding: 0;
}
p {
font-family: Times New Roman;
}
body {
font-size: 100%;
font-family: sans-serif;
background: url(images/tshirttexture.jpg) left repeat-y #0099ff;
}
.leftcolumn{
width:365px;
float:left;
}
.maincontent{
background-color:green;
margin-left: 375px;
max-width: 600px;
}
...如果任何人都可以看一下,让我知道为什么我的图像(index.php 26行'pmsplogo.jpg')没有显示,我会非常感激!
请求URL:http://www.filedropper.com/leftcolumn 请求方法:GET 状态代码:404未找到?? – Oliver 2013-03-02 03:43:58
愚蠢的问题,但图像/ pmsplogo.jpg'存在? – GordonsBeard 2013-03-02 03:46:04
我已将代码添加到您的问题中。请在将来这样做,因为SO上的问题应该是独立的。如果具有类似问题的用户查看此问题会发生什么情况,但文件被删除?他们会走运。因此,为什么你在问题中包含代码,而不是临时文件。 – Daedalus 2013-03-02 04:33:56