[英]Joomla alters the template code
只是遇到一个有趣的问题。
Joomla 3.6.2以某种方式更改了模板的index.php文件,从而创建了显示页面的奇怪结果。
来自index.php的代码的原始部分是这样的:
<div id="content">
<div id="main_content">
<div id="breakingnews">
<jdoc:include type="modules" name="breakingnews" style="xhtml" />
</div>
<div id="news_module">
<jdoc:include type="modules" name="news_module" style="xhtml" />
</div>
<div id="component_wrapper">
<jdoc:include type="message" />
<jdoc:include type="component" />
</div>
<div id="content_module">
<jdoc:include type="modules" name="content_module" style="xhtml" />
</div>
</div>
<div id="right">
<div id="inner_right">
<jdoc:include type="modules" name="right" style="xhtml" />
</div>
</div>
<div id="breadcrumbs">
<jdoc:include type="modules" name="breadcrumbs" style="xhtml" />
</div>
<div id="clearfix"></div>
</div>
Joomla创建以下代码: DIV #right在#main_content DIV内,但不应
网站的其他部分也会发生同样的情况,例如,博客布局中的项目; 它将.item和.span元素彼此放置在内部,如下所示: 这样,整个网站的布局就会变得疯狂!
大家有什么想法吗?
谢谢!
组件模板中可能有不同数量的打开和关闭<div>
标签(文章?)。您可以看看/ templates / your_default_template / html / com_content / article /吗?
或在FireFox中尝试“查看源代码”-它用红色[ctrl + u]标记未关闭的标签(我不确定Chrome或Edge是否标记了它?)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.