This question shows research effort; it is useful and clear
3
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我是 Web 开发的新手,我真的被这个愚蠢的问题困住了。当我在 html 代码之前插入 php 代码时,如下所示:<?php ...some code... ?><!doctype html><html>...它会在我的页面顶部创建额外的空白空间并将整个内容“推”下。是否有可能以某种方式避免创建额外的空间?如果 php 代码位于 html 的正文部分,它也会产生额外的空间,例如,如果它在两个段落之间,它将在这两个段落之间创建额外的空间。感谢您的回答!