Totara Learn Open Discussions

该论坛讨论已删除

 
该论坛帖子已被删除
2020年08月2日 Sunday 05:04
该论坛帖子的内容已被删除,无法再访问。
Craig Eves
Re: Can we add external css or style tag and JavaScript into an HTML block?
Eves (Totara Support)Craig 发表于 2020年08月4日 Tuesday 17:02
小组 Totara

Hi Kanaat

Any non standard content or scripts will be deleted by the editor to prevent malicious content being inserted.

I think the best way to apply CSS to a specific block would be to add the CSS code as Custom CSS under Site admin > Appearance > Themes > Basis

Apply the CSS code to the block instance for example if the block id is 9 then the CSS can be applied to just that block as below

#inst9.block_calendar_month .header{background-color: #008aaf;color:#FFF;}

Regards