-
javascript delegate callback
In c#, you can create a delegate like the code below.
-
Inline box
Inline boxes are laid out in a line horizontally. The horizontal spacing can be adjusted using horizontal padding, borders, and margines. Howerver, vertical padding, borders, and margines will have no effect on the height of a inline box. The horizontal box formed by a line is called a line box, and a line box will always be tall enough for all the line boxes it contains. Howerver, setting the line height can increase the height of this box.
-
style, currentStyle, runtimeStyle
<p>style reprensent the style attribute of an object. But think of it as javascript object. If an element has no style attribute defined, element.color will be undefined. currentStyle is IE object that attached to an element. In firefox it is not accessible.It is a read only object, so you can get the style no matter how the style is created(either from css style sheet or the style attribute of the object.) runtimeStyle is also IE proprietary object, it is meant to be used for write</p> -
A CUSTOM TOOPTIPS
<pre data-sub="prettyprint:_"> function showTip(oEvent) { var oDiv = document.getElementById(“divTip1”); oDiv.style.visibility = “visible”; oDiv.style.left = oEvent.clientX + 5; oDiv.style.top = oEvent.clientY + 5; } </pre> -
floating setting affected by the structure
<p> We all want to express our document in a semantic way, but some time the structure of the document does affect the css. For example, </p>