Is there a way to have an HTML file use a different stylesheet based on the media properties? I know that the link
method takes a media type, but all the references I find only indicate the media type, not an extended query. I'm also unsure of how it would ensure only one is selected, and which one.
Basically in my current CSS file I have a media section like this (simplified just for reference):
@media (min-device-pixel-ratio: 1.5) {
specific-media-rules
}
What I'd like is that instead of having this section and a very similar section for other media is to serve two distinct files.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…