Wordpress标题将不会在IE中显示
标题中的图像显示在Safari,FFX和Opera中,但不在 IE中(9,btw)。
不知道这是否重要,但是当使用IE的开发人员工具时,它会在整个地方显示“空文本节点”。
我甚至不知道其他代码附加到这个职位...让我知道。
网站地址:http://glassinfusion.accountsupport.com/
标题代码:
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
    <meta charset="<?php bloginfo('charset'); ?>" />
    <?php if (is_search()) { ?>
       <meta name="robots" content="noindex, nofollow" /> 
    <?php } ?>
    <title>
           <?php
              if (function_exists('is_tag') && is_tag()) {
                 single_tag_title("Tag Archive for ""); echo '" - '; }
              elseif (is_archive()) {
                 wp_title(''); echo ' Archive - '; }
              elseif (is_search()) {
                 echo 'Search for "'.wp_specialchars($s).'" - '; }
              elseif (!(is_404()) && (is_single()) || (is_page())) {
                 wp_title(''); echo ' - '; }
              elseif (is_404()) {
                 echo 'Not Found - '; }
              if (is_home()) {
                 bloginfo('name'); echo ' - '; bloginfo('description'); }
              else {
                  bloginfo('name'); }
              if ($paged>1) {
                 echo ' - page '. $paged; }
           ?>
    </title>
    <link rel="shortcut icon" href="/favicon.ico">
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
    <link rel="icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" type="image/x-icon" />
    <?php if ( is_singular() ) wp_enqueue_script('comment-reply'); ?>
    <?php wp_head(); ?>
</head>
<body>
<div id="wrapper">
<div id="header">
    <!-- start logo -->
 <h1><a href="<?php echo get_option('home'); ?>/"><span><?php bloginfo('name'); ?></span>
       <img src="<?php bloginfo('template_directory'); ?>/images/logo3.jpg" width="" height=""alt="<?php bloginfo('name'); ?>"/> 
        </a></h1> 
     <!-- End Logo -->
<?php
        /* A sidebar on top of the content? Yep. You can can customize
         * your top with three columns of widgets.
         */
        get_sidebar('navigation');
?>
</div><!--end header -->
<!-- start middle -->
<div id="middle">
在不显示那些图像的情况下,尝试使用不同格式的图像,如gif而不是jpg。
链接地址: http://www.djcxy.com/p/65953.html上一篇: Wordpress header imgage won't display in IE
下一篇: jQuery not working in Internet Explorer 8 Mode of F12 Development Tools
