点击或拖拽改变大小

CssDataAddCssBlock 方法

Add the given css block to the css data, merging to existing block if required.

命名空间:  DSkin.Html.Core
程序集:  DSkin (在 DSkin.dll 中) 版本:16.6.3.22
语法
C#
public void AddCssBlock(
	string media,
	CssBlock cssBlock
)

参数

media
类型:SystemString
the media type to add the CSS to
cssBlock
类型:DSkin.Html.Core.EntitiesCssBlock
the css block to add
备注
If there is no css blocks for the same class it will be added to data collection.
If there is already css blocks for the same class it will check for each existing block if the hierarchical selectors match (or not exists). if do the two css blocks will be merged into one where the new block properties overwrite existing if needed. if the new block doesn't mach any existing it will be added either to the beginning of the list if it has no hierarchical selectors or at the end.
Css block without hierarchical selectors must be added to the beginning of the list so more specific block can overwrite it when the style is applied.
参见