php程序的网站怎么在顶部调用一个已经单独存在的html页面
wordpess怎么在页面上调用一个独立的html页面
我要在wordpress 的顶部调用一个已经存在的单独的html页面 要怎么才能实现
因为修改了html用了一些CSS 直接用代码会造成页面错位,所以只能调用html页面
- PHP code
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> <meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo( 'charset' ); ?>"> <title> <?php global $page, $paged; if(is_home()){ $options = get_option('xiaohan_options'); echo($options['indextitle']);}else{wp_title( '|', true, 'right' ); bloginfo( 'name' ); if ( $paged >= 2 || $page >= 2 ) echo ' | ' . sprintf( __( 'Page %s', 'xiaohan' ), max( $paged, $page ) ); } ?> </title> <?php if (is_home()){ $options = get_option('xiaohan_options'); $description = ($options['indexdescription']); $keywords = ($options['indexkeyword']); } elseif (is_single()){ if ($post->post_excerpt) { $description = $post->post_excerpt; } else { $description = utf8_CsubStr(strip_tags($post->post_content),0,190); } $keywords = ""; $tags = wp_get_post_tags($post->ID); foreach ($tags as $tag ) { $keywords = $keywords . $tag->name . ", "; } } elseif (is_category()){ $description = strip_tags(category_description()); $categoryname = get_the_category(); $keywords = $categoryname[0]->cat_name; } ?> <meta name="keywords" content="<?php echo $keywords; ?>"> <meta name="description" content="<?php echo $description; ?>"> //下面这行是代码,想要在这位置插入,因为修改了html用了一些CSS 直接用代码会造成页面错位,所以只能调用html页面 <script src="http://www.sbisyou.com/plus/ad_js.php?aid=5" language="javascript"></script> <link rel="stylesheet" href="<?php%20bloginfo('stylesheet_url');%20?>" type="text/css" media="screen"> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php%20%24options%20=%20get_option('xiaohan_options');%20if%20(%24options%5B'feed_url'%5D)%20%7Becho(%24options%5B'feed_url'%5D);%7D%20else%20%20bloginfo('rss2_url');%20?>"> <link rel="pingback" href="<?php%20bloginfo('pingback_url');%20?>"> <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> <script type="text/javascript" src="<?php%20bloginfo('template_url');%20?>/js/base.js"></script> <?php $options = get_option('xiaohan_options'); if ($options['submenu']){?> <link rel="stylesheet" href="<?php%20bloginfo('template_url');%20?>/superfish.css" type="text/css" media="screen"> <script type="text/javascript" src="<?php%20bloginfo('template_url');%20?>/js/jquery-1.2.6.min.js"></script> <script type="text/javascript" src="<?php%20bloginfo('template_url');%20?>/js/hoverIntent.js"></script> <script type="text/javascript" src="<?php%20bloginfo('template_url');%20?>/js/superfish.js"></script> <script type="text/javascript" src="<?php%20bloginfo('template_url');%20?>/js/jquery.bgiframe.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("ul.menu").superfish().find('ul').bgIframe({opacity:false}); }); </script> }else{?> <style>#nav ul.sub-menu{display:none;}</style> <?php }?> <?php wp_head(); ?> > <div id="top"> <div id="header"> <div id="blog_title"> <h1><a href="<?php%20echo%20get_option('home');%20?>/"><?php bloginfo('name'); ?></a></h1> <p><?php bloginfo('description'); ?></p> <div class="banner"> <?php // Check if this is a post or page, if it has a thumbnail, and if it's a big one $options = get_option('xiaohan_options'); $banner_link = $options['banner_link']; $banner_link_target = $options['banner_link_target']; $banner_link_xfn = $options['banner_link_xfn']; if ( is_singular() && has_post_thumbnail( $post->ID ) && ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) && $image[1] >= HEADER_IMAGE_WIDTH ) : // Houston, we have a new header image! echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' ); else : ?> <a href="<?php%20echo%20%24banner_link;?>" if echo target="_blank"><?php if($banner_link_xfn==1) echo ' rel="nofollow"'; ?>><img src="<?php%20header_image();%20?>" style="max-width:90%" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt=""></a> <?php endif; ?> </div> </div> <div id="nav"> <?php wp_nav_menu('container=\'\'&menu_id=menu&title_li=&link_before=<span>&link_after='); ?> <div class="rss_ico"><a href="<?php%20%24options%20=%20get_option('xiaohan_options');%20if%20(%24options%5B'feed_url'%5D)%20%7Becho(%24options%5B'feed_url'%5D);%7D%20else%20%20bloginfo('rss2_url');%20?>" target="_blank" rel="nofollow"><img src="<?php%20bloginfo('template_url');%20?>/images/rss_ico.gif" style="max-width:90%" style="max-width:90%" alt="RSS 订阅"></a></div> </div> </div> </div> <div id="wrap"> <div class="clear"> </div> </div>

许多用户在选择智能手表的时候都会选择的华为的品牌,其中华为GT3pro和GT4都是非常热门的选择,不少用户都很好奇华为GT3pro和GT4有什么区别,下面就就给大家介绍一下二者。华为GT3pro和GT4有什么区别一、外观GT4:46mm和41mm,材质是玻璃表镜+不锈钢机身+高分纤维后壳。GT3pro:46.6mm和42.9mm,材质是蓝宝石玻璃表镜+钛金属机身/陶瓷机身+陶瓷后壳二、健康GT4:采用最新的华为Truseen5.5+算法,结果会更加的精准。GT3pro:多了ECG心电图和血管及安

php把负数转为正整数的方法:1、使用abs()函数将负数转为正数,使用intval()函数对正数取整,转为正整数,语法“intval(abs($number))”;2、利用“~”位运算符将负数取反加一,语法“~$number + 1”。

为什么截图工具在Windows11上不起作用了解问题的根本原因有助于找到正确的解决方案。以下是截图工具可能无法正常工作的主要原因:对焦助手已打开:这可以防止截图工具打开。应用程序损坏:如果截图工具在启动时崩溃,则可能已损坏。过时的图形驱动程序:不兼容的驱动程序可能会干扰截图工具。来自其他应用程序的干扰:其他正在运行的应用程序可能与截图工具冲突。证书已过期:升级过程中的错误可能会导致此issu简单的解决方案这些适合大多数用户,不需要任何特殊的技术知识。1.更新窗口和Microsoft应用商店应用程

php除以100保留两位小数的方法:1、利用“/”运算符进行除法运算,语法“数值 / 100”;2、使用“number_format(除法结果, 2)”或“sprintf("%.2f",除法结果)”语句进行四舍五入的处理值,并保留两位小数。

判断方法:1、使用“strtotime("年-月-日")”语句将给定的年月日转换为时间戳格式;2、用“date("z",时间戳)+1”语句计算指定时间戳是一年的第几天。date()返回的天数是从0开始计算的,因此真实天数需要在此基础上加1。

php判断有没有小数点的方法:1、使用“strpos(数字字符串,'.')”语法,如果返回小数点在字符串中第一次出现的位置,则有小数点;2、使用“strrpos(数字字符串,'.')”语句,如果返回小数点在字符串中最后一次出现的位置,则有。

查找方法:1、用strpos(),语法“strpos("字符串值","查找子串")+1”;2、用stripos(),语法“strpos("字符串值","查找子串")+1”。因为字符串是从0开始计数的,因此两个函数获取的位置需要进行加1处理。

在PHP中,可以利用implode()函数的第一个参数来设置没有分隔符,该函数的第一个参数用于规定数组元素之间放置的内容,默认是空字符串,也可将第一个参数设置为空,语法为“implode(数组)”或者“implode("",数组)”。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 English version
Recommended: Win version, supports code prompts!

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)
