Beispiel #1
0
        /// <summary>
        /// 对象实例化
        /// </summary>
        /// <param name="names"></param>
        public HtmlCssMedia(string names = null)
        {
            this.Keys  = new List <string>();
            this.Items = new HtmlCssUnitCollection();

            if (!names.IsNoneOrNull())
            {
                string[] ks = names.Split(',');
                for (int i = 0; i < ks.Length; i++)
                {
                    this.Keys.Add(ks[i].Trim());
                }
            }
        }
Beispiel #2
0
 /// <summary>
 /// 对象实例化
 /// </summary>
 public HtmlCss(string css) : base()
 {
     this.Items = new HtmlCssUnitCollection();
     Parser.FillCss(this, css);
 }
Beispiel #3
0
 /// <summary>
 /// 对象实例化
 /// </summary>
 public HtmlCss() : base()
 {
     this.Items = new HtmlCssUnitCollection();
 }