我想知道在.NET中是否有一个枚举,它包含了你可以在css中使用的所有不同的媒体类型?
类似于:
/// <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
}发布于 2010-11-03 22:41:31
我从来没有遇到过..。但看起来你已经试过了:-)
https://stackoverflow.com/questions/4088179
复制相似问题