RT,我这边做好的项目发给同事,他那边打开后和我这边的效果就有不同,最明显的不同是我们的table表格行间距变小。但是我们都是ie10,都是win7系统。
这种情况还出现过一次:在现场给客户装该项目程序,一切正常。但如果我在服务器上修改php文件,哪怕是加一个完全没用的后台变量,行间距都会变小。上图:
第一个是正常的,第二个是变小的。
求大神解惑。。用了smarty模板
回复讨论(解决方案)
求大神 @xuzuning
@xuzuning
仅从截图是看不出来的,况且你截的还不是同一页面
仅从截图是看不出来的,况且你截的还不是同一页面
因为我这边是没问题的 所以我让同事把他那边有问题的发过来了 虽然不是同一个页面 但是套用这个tpl的页面都是这个样子
还需要什么呢?源码?
你不是说是一样的东西吗?怎么还“套用”?
TP 要求程序文件(包括模板)都是 无BOM utf-8 编码的,请注意一下
BOM头 是会破坏页面布局的
你不是说是一样的东西吗?怎么还“套用”?
TP 要求程序文件(包括模板)都是 无BOM utf-8 编码的,请注意一下
BOM头 是会破坏页面布局的
可能是我用词不当,我说的“套用”指的是 $smarty->display($tpl); 里面的$tpl模板文件是一样的,
另外请教版主 我百度了以下BOM,只有个解释是browser object model。不是很理解啊。。
浏览器是一样的?程序执行的话,应该不会发生什么差异性,主要还是浏览器的问题。
浏览器是一样的?程序执行的话,应该不会发生什么差异性,主要还是浏览器的问题。
但为什么在服务器上随便改动一点点代码都会导致样式的改变呢?
不是跟你讲了是 BOM头 的影响了吗?
网上关于如何去除 BOM 头的文章很多,你怎么就不看一下呢?
解决了 谢谢版主
是因为用记事本保存utf8的php文件导致的

Long URLs, often cluttered with keywords and tracking parameters, can deter visitors. A URL shortening script offers a solution, creating concise links ideal for social media and other platforms. These scripts are valuable for individual websites a

Following its high-profile acquisition by Facebook in 2012, Instagram adopted two sets of APIs for third-party use. These are the Instagram Graph API and the Instagram Basic Display API.As a developer building an app that requires information from a

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-

This is the second and final part of the series on building a React application with a Laravel back-end. In the first part of the series, we created a RESTful API using Laravel for a basic product-listing application. In this tutorial, we will be dev

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' =>

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.

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

The 2025 PHP Landscape Survey investigates current PHP development trends. It explores framework usage, deployment methods, and challenges, aiming to provide insights for developers and businesses. The survey anticipates growth in modern PHP versio


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

Dreamweaver CS6
Visual web development tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment
