示例#1
0
        /// <summary>Gets the url of the background image.</summary>
        static public string BackgroundImage(this HtmlNode node)
        {
            string style = node["style"];

            if (style == null)
            {
                return(null);
            }
            // assumes if there is a style, has background image
            return(style.Clip(Clip.After("url("), Clip.At(");")));
        }