Media queries are commonly associated with CSS, but they can be used in HTML and JavaScript as well. 在「css-tricks.com」查看更多資訊 Now that we’ve seen several examples of wheremedia queries can be used, let’s pick them apart and see what they’re actually doing
The CSS Media Query gives you a way to apply CSS only when the browser and device environment matches a rule that you specify, for example "viewport is wider than 480 pixels".
A media query consists of a media type and zero or more expressions that match the type and conditions of a particular media features such as device width or screen resolution.
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.