duanjuete9206 2011-11-29 03:19
浏览 25

文件保存为html和php时出现奇怪的格式问题

When the file saved as a html file everything renders fine but when file saved as php it looks like there is a open tag. The open tag mentioned is the is a simple " "< " and can be seen on the live php page http://bit.ly/v267Nh. Also here is the html version of the same file where " "< " is not rendered http://bit.ly/t26igR. There is no php script within the file so what you see in the source is the actual html source.

When i view the source in Firefox "> character encoding but i have no idea how it is rendered since there is no php script that is generating the html code. Here is the code as it appears in the code editor.

<h1>All Purpose Cleaning Kit</h1>
<p>Safer and powerful cleaning action that removes grease, oil and heavy soiling from appliances, counters, tables, shelves, floors, doors, walls, and all other hard surfaces in and around your home.   </p><br />
<p><b>Comes With Everything Pictured:</b>   Kit Box, 32 oz. Spray Bottle, 12 oz. Concentrate, Push/Pull Cap, Micro-Fiber Cloth<br /><br /><b>Concentrate Makes Up To (6) 32 oz. Spray Bottles (1 1/2 Gallons)</b><br />
<div class="bottles"><img src="imgs/smallbottles.png" width="210" height="75"></div>
</p> <table width="450" border="1" class="pricetable">
  • 写回答

1条回答 默认 最新

  • duangai9678 2011-11-29 03:26
    关注

    Without seeing your php source code it's impossible to tell.

    Search through the source and try to find <div class="bottles">, there is an empty paragraph underneath it and under that is your bracket. If I were to guess, it's probably one too many double-quotes.

    By the way, take a look at Google Chromes "Inspector" or Firefox's Firebug plugin. It'll help you to pin point these sort of issues.

    Update #1:

    There are quite a few javascript errors which may be causing this. It's happening on both versions of your page so it's unlikely, but you never know.

    评论

报告相同问题?

悬赏问题

  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题