代码之家  ›  专栏  ›  技术社区  ›  Peter

.Net中是否有CSS媒体类型的系统枚举?

  •  3
  • Peter  · 技术社区  · 15 年前

    类似于:

    /// <summary>
    /// List of available media types for css (comments from http://www.w3schools.com/css/css_mediatypes.asp)
    /// </summary>
    public enum CssMediaType
    {
        /// <summary>
        /// Used for all media type devices
        /// </summary>
        all,
        /// <summary>
        /// Used for speech and sound synthesizers
        /// </summary>
        aural,
        /// <summary>
        /// Used for braille tactile feedback devices
        /// </summary>
        braille,
        /// <summary>
        /// Used for paged braille printers
        /// </summary>
        embossed,
        /// <summary>
        /// Used for small or handheld devices
        /// </summary>
        handheld,
        /// <summary>
        /// Used for printers
        /// </summary>
        print,
        /// <summary>
        /// Used for projected presentations, like slides
        /// </summary>
        projection,
        /// <summary>
        /// Used for computer screens
        /// </summary>
        screen,
        /// <summary>
        /// Used for media using a fixed-pitch character grid, like teletypes and terminals
        /// </summary>
        tty,
        /// <summary>
        /// Used for television-type devices
        /// </summary>
        tv
    }
    
    1 回复  |  直到 15 年前
        1
  •  1
  •   Joel Martinez    15 年前

    我从来没有遇到过。。。但看起来你已经尝试过了:-)