In the SDK for Windows SharePoint Services 3.0, you can obtain the styles used by various controls on the page to modify the default styles, you do not need to spend a long time searching in the style list.
Add a Content Editor Web part on the page for getting the style
Open the source editor in the Content Editor settings and enter the following code:
<Script language = "jscript"> Function classinfo () { If (window. event. srcelement. classname! = NULL) { Stsclass. innertext = Window. event. srcelement. classname; } Else { Stsclass. innertext = ""; } } Required parameter Doc ument. Body. onmouseover = classinfo; </SCRIPT> <Div style = "border-style: solid; border-width: 1px; width: 281px; Height: 34px; Position: absolute; left: 286px; top: 41px; Z-index: 15; padding-left: 4px; Padding-Right: 4px; padding-top: 2px; padding-bottom: 2px; Background-color: # eeeef4 "> <P id = "stsclasstitle"> <font face = "tahoma" id = "font1"> classname: </font> <Font face = "tahoma" id = "stsclass"> </font> </P> </div> |
Click OK. When you move the cursor over a widget on the page, the style name used by the widget is displayed.
If the position is not good, you can modify the position value in the style to change the position.