Questions tagged «module-style»

6
在页脚和自定义样式中添加JavaScript文件
为了快速加载页面,我需要在组件和模块的页面末尾插入JS。 以下声明脚本的方法无法将其插入底部,因为没有参数可将其放在页脚中。 $rsws_document = JFactory::getDocument(); $rsws_document->addScript(); 那么实现我的目标的简洁方法是什么?如果joomla不提供这样的功能,那么这将是页面加载速度的重大缺陷。 我还想从模块中添加自定义样式表,以便即使同一模块在该页面中多次添加页面,它们也只会注入到页面一次- <style type="text/css"> .classname { color:red; }.....</style> 我该如何实现?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.