Documentation

addCss

boolean public
\Bitrix\Main\Page\Asset::addCss(
  $path,
 boolean $additional = false
);

Non-static method adds css to site's <head>…</head> section.

Similar to the method CMain::SetAdditionalCSS in the old core.

Parameters

ParameterDescriptionVersion
$path
$additional

Example



© «Bitrix24», 2001-2024
Up