急!急!急!急!急!求解
回复讨论(解决方案)
看模板,或者php文件
这里有空白
多半是BOM头在作怪
nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
回复于: 2014-07-02 16:29:21
多半是BOM头在作怪
如何解决
多半是BOM头在作怪
如何解决
可以把代码保存为utf8无dom试试。
不过我觉得更大的可能是有个html标签没关闭,因为以前也遇到过这种情况,建议检查下标签是否都匹配且关闭了
看模板,或者php文件
这里有空白
nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
} elseif ( is_category() ) {
single_cat_title(); echo " - "; bloginfo('name');
} elseif (is_single() || is_page() ) {
single_post_title();
} elseif (is_search() ) {
echo "搜索结果"; echo " - "; bloginfo('name');
} elseif (is_404() ) {
echo '页面未找到!';
} else {
wp_title('',true);
} ?>
可以把代码保存为utf8无dom试试。
不过我觉得更大的可能是有个html标签没关闭,因为以前也遇到过这种情况,建议检查下标签是否都匹配且关闭了
保存成utf8无dom了 标签都匹配且关闭了
我记得我遇到过这个问题,所来解决掉了。可是??现在想不起来是什么原因。。。
晕上面的话还没说完,不小心 ctrl+enter 了。
补充:
LZ 看看 body 标签是不是设置了 padding
第一个元素有没有设置 margin
再不行就用火狐右键查看元素,看看盒子模型,就能找出到底这个间隔是谁弄的。
$s = file_get_contents('http://www.1718jc.com/', false, null, 0, 10);echo bin2hex($s);efbbbf efbbbf203c2144
这不是 BOM 头吗?还是两个!
bom头影响的,打开首页文件,去除bom头,如果不会,请留下联系方式
是啊,这个问题我们 之前也遇到过,很揪心的,用Dreamweaver另存为,去掉bom头选项就好了,啊哈
把文件新建一个然后代码复制过去后保存,然后替换该文件,妥妥的。
如果以上方法都无效,可以试试我的方法:
用文本编辑器打开网页源码,Ctrl+F 搜索源码中是否含有“ ` ", 然后去掉保存。
我今天也碰到了这个问题,折腾了一个小时,代码翻来覆去看都没问题,最后发下是自己不小心按多了这个 反单引号,顺便写出来,希望对后续碰到这样问题的有帮助。

Laravel simplifies handling temporary session data using its intuitive flash methods. This is perfect for displaying brief messages, alerts, or notifications within your application. Data persists only for the subsequent request by default: $request-

The PHP Client URL (cURL) extension is a powerful tool for developers, enabling seamless interaction with remote servers and REST APIs. By leveraging libcurl, a well-respected multi-protocol file transfer library, PHP cURL facilitates efficient execution of various network protocols, including HTTP, HTTPS, and FTP. This extension offers granular control over HTTP requests, supports multiple concurrent operations, and provides built-in security features.

Laravel provides concise HTTP response simulation syntax, simplifying HTTP interaction testing. This approach significantly reduces code redundancy while making your test simulation more intuitive. The basic implementation provides a variety of response type shortcuts: use Illuminate\Support\Facades\Http; Http::fake([ 'google.com' => 'Hello World', 'github.com' => ['foo' => 'bar'], 'forge.laravel.com' =>

Do you want to provide real-time, instant solutions to your customers' most pressing problems? Live chat lets you have real-time conversations with customers and resolve their problems instantly. It allows you to provide faster service to your custom

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

PHP logging is essential for monitoring and debugging web applications, as well as capturing critical events, errors, and runtime behavior. It provides valuable insights into system performance, helps identify issues, and supports faster troubleshoot

The Storage::download method of the Laravel framework provides a concise API for safely handling file downloads while managing abstractions of file storage. Here is an example of using Storage::download() in the example controller:

Laravel simplifies HTTP verb handling in incoming requests, streamlining diverse operation management within your applications. The method() and isMethod() methods efficiently identify and validate request types. This feature is crucial for building


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

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

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.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft
