Get collection of css blocks for the requested class selector.
the className can be: class name, html element name, html element and
class name (elm.class), hash tag with element id (#id).
returned all the blocks that word on the requested class selector, it can contain simple
selector or hierarchy selector.
命名空间:
DSkin.Html.Core
程序集:
DSkin (在 DSkin.dll 中) 版本:16.6.3.22
语法public IEnumerable<CssBlock> GetCssBlock(
string className,
string media = "all"
)
参数
- className
- 类型:SystemString
the class selector to get css blocks by - media (Optional)
- 类型:SystemString
optional: the css media type (default - all)
返回值
类型:
IEnumerableCssBlockcollection of css blocks, empty collection if no blocks exists (never null)
参见