#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
Local $oIE = _IECreateEmbedded()
GUICreate("Тест вставленного Web-элемента", 640, 480, -1, -1, _
BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS, $WS_CLIPCHILDREN), $WS_EX_COMPOSITED)
GUICtrlCreateObj($oIE, 5, 5, 630, 405)
GUICtrlSetResizing(-1, 2 + 4 + 32 + 64)
GUISetState()
$sHTML = ""
$sHTML &= "<HTML>" & @CR
$sHTML &= "<HEAD>" & @CR
$sHTML &= "<TITLE>Часы</TITLE>" & @CR
$sHTML &= "<style>"
$sHTML &= ".text-bg { text-align:center; position:absolute; width:100%; bottom:10%; color:#000000; text-shadow: 2px 2px red;}"
$sHTML &= ".text-lay {position:absolute; width:100%; height:100%; background: #cccccc;}"
$sHTML &= "</style>"
$sHTML &= "</HEAD>" & @CR
$sHTML &= "<div class=""text-lay""></div> <div class=""text-bg""> <h1>Крупный текст</h1><h2>Текст поменьше</h2></div>"
$sHTML &= "</body>"
$sHTML &= "</HTML>"
_IENavigate ($oIE, "about:blank")
_IEDocWriteHTML($oIE, $sHTML)
_IEAction($oIE, "refresh")
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
ExitLoop
EndSwitch
WEnd
GUIDelete()
Exit