0

在我的 wordpress 网站中,我使用了 bbpress 插件。以下代码负责渲染搜索框和提交按钮。

<form role="search" method="get" id="bbp-search-form" action="<?php bbp_search_url(); ?>">
    <div>
        <label class="screen-reader-text hidden" for="bbp_search"><?php _e( 'Search for:', 'bbpress' ); ?></label>
        <input placeholder="Search <?php the_title(); ?> Topics" tabindex="<?php bbp_tab_index(); ?>" type="text"  style="width:400px;height:20px;"value="<?php echo esc_attr( bbp_get_search_terms() ); ?>" name="bbp_search" id="bbp_search"  />
        <?php if( $forum_id ): ?>
        <input class="button" type="hidden" name="bbp_search_forum_id" value="<?php echo $forum_id; ?>" />
        <?php endif; ?>
        <input tabindex="<?php bbp_tab_index(); ?>" class="button" type="submit" id="bbp_search_submit" value="<?php esc_attr_e( 'Search', 'bbpress' ); ?>" />
    </div>
</form>

但问题是当它在 IE 中呈现时,搜索框和按钮没有正确对齐。

请参见下面的屏幕截图。

搜索框和按钮

但是,在 localhost 中也可以使用 IE 网络浏览器。问题是当我把它放到远程服务器上时。我发现远程服务器的版本有点旧,而本地的版本是最新的。

除此之外,我使用 jquery UI 来呈现按钮样式。问题出在哪里?我需要升级服务器吗?

4

0 回答 0