CMain::ShowCSS( bool external = true )
The method ShowCSS emits the CSS of a page.
This method utilizes the delay function technology allowing to specify CSS (e.g. inside a component) after the site prologue is emitted.
Parameter | Description |
---|---|
external | If true, the HTML tag <LINK> with the link to the CSS file is emitted:<LINK href="/bitrix/templates/demo/styles.css" type="text/css" rel="stylesheet">If false, the inline CSS is outputted: <style type="text/css"> body { margin: 0px; padding:0px; background-color: #FFFFFF} ... </style>Styles located in /bitrix/modules/ are always connected inline (this is generally used in standard components). |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?= LANG_CHARSET;?>"> <META NAME="ROBOTS" content="ALL"> <?$APPLICATION->ShowMeta("keywords")?> <?$APPLICATION->ShowMeta("description")?> <title><?$APPLICATION->ShowTitle()?></title> <?$APPLICATION->ShowCSS();?> </head> <body link="#525252" alink="#F1555A" vlink="#939393" text="#000000"> ...
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |