Why is the style of the Web page different for the same environment and browser?

Source: Internet
Author: User
Tags smarty template
RT, my side of the project to be done to colleagues, his side open and my side of the effect is different, the most obvious difference is that our table table row spacing is smaller. But we are all ie10, all of them are Win7 systems.
This situation also occurs once: in the field to the customer to install the project program, everything is normal. But if I modify the PHP file on the server, even if I add a completely useless background variable, the line spacing will be smaller. :


The first one is normal and the second one is smaller.
Ask the big God to dispel doubts. Using the Smarty template


Reply to discussion (solution)

Seeking the Great God @xuzuning

@xuzuning

It's just not visible, and you're not cutting the same page.

It's just not visible, and you're not cutting the same page.


Because I have no problem with my side, so I asked my colleague to send a question over his side. Although not the same page but the page that applies this TPL is like this

What else do you need? Source?

Didn't you say it was the same thing? How do you still "apply"?
TP requires that program files (including templates) are utf-8 encoded without BOM, please note

BOM header can break the page layout

Didn't you say it was the same thing? How do you still "apply"?
TP requires that program files (including templates) are utf-8 encoded without BOM, please note

BOM header can break the page layout


Maybe I used the wrong words, I said "apply" refers to the $smarty->display ($TPL); Inside the $tpl template file is the same,
In addition to consult moderator I Baidu the following BOM, only one explanation is browser object model. Not very understanding AH.

The browser is the same? If the program is executed, there should be no difference, mainly the browser problem.

The browser is the same? If the program is executed, there should be no difference, mainly the browser problem.


But why is it that changing a little bit of code on a server can cause a change in style?

I told you it was the BOM head effect?
Online about how to remove the BOM head of a lot of articles, why don't you look at it?

Solved Thanks Moderator
Because the UTF8 php file is saved with Notepad.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.