在CSS中_service用于表示HTMLayout引擎内部合成的节点,
示例:
import win.ui;
/*DSG{{*/
var winform = ..win.form( bottom=399;parent=...;text="_service 标签";right=599 )
winform.add( )
/*}}*/
import web.layout;
wbLayout = web.layout(winform)
import web.layout.debug;
wbLayout.attachEventHandler( web.layout.debug );
wbLayout.html = /**
<body>
<a title="测试提示文字">鼠标悬停在这里试试</a>
</body>
**/
wbLayout.css = /**
_service popup{
background:yellow;
width:max-intrinsic;
height:max-intrinsic;
border-radius:4px;
padding:20px;
}
body{
margin:20px;
font:system 10.5pt;
}
**/
winform.show()
win.loopMessage();
_service popup 在这里表示鼠标悬停在节点时,HTMLayout根据title属性自动创建的提示框
|