Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/drupal/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
删除html类drupal7初学者主题_Drupal_Drupal 7_Drupal Theming - Fatal编程技术网

删除html类drupal7初学者主题

删除html类drupal7初学者主题,drupal,drupal-7,drupal-theming,Drupal,Drupal 7,Drupal Theming,我对drupal有点陌生,目前正在制作一个新的主题文件夹,但我有一个问题。我已经编辑了page.tpl.php和.info文件以适合我的页面。但是当我编辑页面时,我没有得到我想要的整个页面。对不起,如果我不清楚,但是在我的任何文件中都没有这样的名字- <html class="js" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:si

我对drupal有点陌生,目前正在制作一个新的主题文件夹,但我有一个问题。我已经编辑了page.tpl.php和.info文件以适合我的页面。但是当我编辑页面时,我没有得到我想要的整个页面。对不起,如果我不清楚,但是在我的任何文件中都没有这样的名字-

<html class="js" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:sioct="http://rdfs.org/sioc/types#" xmlns:sioc="http://rdfs.org/sioc/ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:og="http://ogp.me/ns#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:dc="http://purl.org/dc/terms/" xmlns:content="http://purl.org/rss/1.0/modules/content/" dir="ltr" version="XHTML+RDFa 1.0" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"

在modules/system/HTML.tpl.php中可以找到带有开头HTML标记的行

如果将该文件复制到主题文件夹中,则可以在那里编辑该文件,并且该文件的副本将覆盖系统模块中的副本

从图片上看,ID为root的div的主体上似乎有填充

检查这两个元件,看看哪个元件上有衬垫。然后,您可以在主题CSS文件中创建一个新规则来删除填充