You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css.html
+13-11Lines changed: 13 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -320,23 +320,25 @@ <h2>11. overflow</h2>
320
320
<br>
321
321
<p>ref: <ahref="http://css-tricks.com/the-css-overflow-property/">overflow</a> (read the link and add something from it)</p>
322
322
</div>
323
+
324
+
<divid="div_section_article">
325
+
<h2>13. media queries</h2>
326
+
<p><strong>Question:</strong> How could you apply css rules specific to a media?</p>
327
+
<p><strong>Answer: </strong><code>@media (max-width:700px){...}</code> means you want to apply rules to those media whose max-width is 700 px. this means every samller device will have this rule.</p>
328
+
<p><code>@media (max-width:700px) and (orientation: landscape){...}</code> will apply rules for media smaller than 700px and in landscape orientation.</p>
329
+
<p><strong>Question:</strong> What is the use of only?</p>
330
+
<p><strong>Answer:</strong> to hide style sheets from older user agents.</p>
331
+
<p><strong>Question:</strong> Does the screen keyword apply to the device's physical screen or the browser's viewport?</p>
<p>ref: <ahref="http://mobile.smashingmagazine.com/2010/07/19/how-to-use-css3-media-queries-to-create-a-mobile-version-of-your-website/">how to use media queries</a>, <ahref="https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries">css media queries</a>, <ahref="http://www.w3.org/TR/css3-mediaqueries/#media0">W3: media queries</a></p>
334
+
</div>
323
335
<divid="mtuli_lang">
324
-
<h2>12. pre processor</h2>
336
+
<h2>13. pre processor</h2>
325
337
<p><strong>Question:</strong> Have you used any preprocessor? What are the reasons to use preprocessor?</p>
326
338
<p><strong>Answer:</strong> .</p>
327
339
328
340
ref: <ahref="http://www.frontendjournal.com/most-common-technical-interview-question-for-frontend-developers/">most common interview questions</a>
329
341
</div>
330
-
<divid="div_section_article">
331
-
<h2>13. only screen</h2>
332
-
<p><strong>Question:</strong> What is the use of only?</p>
333
-
<pre><code>
334
-
<style><br/> @media only screen and (max-width: 1024px) {<br/> margin: 0;<br/> }<br/></style><br/>
335
-
</code></pre>
336
-
<p><strong>Answer:</strong> Stops older browsers from parsing the remainder of the selector</p>
337
-
<p><strong>Question:</strong> Does the screen keyword apply to the device's physical screen or the browser's viewport?</p>
0 commit comments