|
45 | 45 | } |
46 | 46 | .clearLeft{ |
47 | 47 | clear:left; |
| 48 | + } |
| 49 | + .clearBoth{ |
| 50 | + clear: both; |
48 | 51 | } |
49 | 52 | .box{ |
50 | 53 | float: left; |
|
63 | 66 | width: 100px; |
64 | 67 | background-color: red; |
65 | 68 | } |
| 69 | + .overflowContainer{ |
| 70 | + height: 280px; |
| 71 | + border: 2px solid gray; |
| 72 | + padding: 5px; |
| 73 | + } |
| 74 | + .overflowBox{ |
| 75 | + padding: 5px; |
| 76 | + margin: 5px; |
| 77 | + float: left; |
| 78 | + border: 2px solid gray; |
| 79 | + } |
| 80 | + .overflowBox p{ |
| 81 | + width: 150px; |
| 82 | + height: 150px; |
| 83 | + } |
| 84 | + .overflowVisible{ |
| 85 | + overflow: visible; |
| 86 | + } |
| 87 | + .overflowHidden{ |
| 88 | + overflow: hidden; |
| 89 | + } |
| 90 | + .overflowScroll{ |
| 91 | + overflow: scroll; |
| 92 | + } |
| 93 | + .overflowAuto{ |
| 94 | + overflow: auto; |
| 95 | + } |
66 | 96 | </style> |
67 | 97 |
|
68 | 98 | <!-- Just for debugging purposes. Don't actually copy this line! --> |
@@ -262,24 +292,41 @@ <h2>10. transition</h2> |
262 | 292 | <p>ref: <a href="http://blog.alexmaccaw.com/css-transitions">all you need to know about css transition</a>, <a href="http://css3.bradshawenterprises.com/transitions/">transition: tutorial</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Using_CSS_transitions">css transition</a>, <a href="http://www.html5rocks.com/en/tutorials/3d/css/">transition and 3D</a></p> |
263 | 293 |
|
264 | 294 | </div> |
265 | | -<div id="mtuli_lang"> |
266 | | - <h2>11. pre processor</h2> |
267 | | - <p><strong>Question:</strong> Have you used any preprocessor? What are the reasons to use preprocessor?</p> |
268 | | - <p><strong>Answer:</strong> .</p> |
269 | | - |
270 | | - ref: <a href="http://www.frontendjournal.com/most-common-technical-interview-question-for-frontend-developers/">most common interview questions</a> |
271 | | -</div> |
272 | 295 | <div id="svg_canvas"> |
273 | | - <h2>12. overflow</h2> |
| 296 | + <h2>11. overflow</h2> |
274 | 297 | <p><strong>Question:</strong> Describe Overflow</p> |
275 | 298 | <p><strong>Answer:</strong> overflow property deals with the content if content size exceeds the allocated size for the content. You can make extra content visible, hidden, scroll or auto (viewport default behavior).</p> |
276 | 299 | <p><strong>Question:</strong> Does overflow: hidden create a new block formatting context?</p> |
277 | | - <pre><code> |
278 | | -<style><br/> div {<br/> overflow: hidden;<br/> }<br/> p {<br/> float: left;<br/> }<br/></style><br/><div><br/> <p>I am floated</p><br/> <p>So am I</p><br/></div><br/> |
279 | | - </code></pre> |
280 | 300 | <p><strong>Answer:</strong> yes</p> |
| 301 | + <div> |
| 302 | + <button id = "overflow" type="button" class="toggleExample btn btn-primary">show example</button> |
| 303 | + <div id="overflowExample" class="hide"> |
| 304 | + <div class="overflowContainer"> |
| 305 | + <div class="overflowBox"> |
| 306 | + <p class="overflowVisible"><code>overflow:visible</code> This is some simple content to see how overflow works when you have too many things to say in a too small space. But don't be the person who just say rather be the person who does. does something for himself and others.</p> |
| 307 | + </div> |
| 308 | + <div class="overflowBox"> |
| 309 | + <p class="overflowHidden"><code>overflow:hidden</code> This is some simple content to see how overflow works when you have too many things to say in a too small space. But don't be the person who just say rather be the person who does. does something for himself and others.</p> |
| 310 | + </div> |
| 311 | + <div class="overflowBox"> |
| 312 | + <p class="overflowScroll"><code>overflow:scroll</code> This is some simple content to see how overflow works when you have too many things to say in a too small space. But don't be the person who just say rather be the person who does. does something for himself and others.</p> |
| 313 | + </div> |
| 314 | + <div class="overflowBox"> |
| 315 | + <p class="overflowAuto"><code>overflow:auto</code> This is some simple content to see how overflow works when you have too many things to say in a too small space. But don't be the person who just say rather be the person who does. does something for himself and others.</p> |
| 316 | + </div> |
| 317 | + </div> |
| 318 | + </div> |
| 319 | + </div> |
| 320 | + <br> |
281 | 321 | <p>ref: <a href="http://css-tricks.com/the-css-overflow-property/">overflow</a> (read the link and add something from it)</p> |
282 | 322 | </div> |
| 323 | +<div id="mtuli_lang"> |
| 324 | + <h2>12. pre processor</h2> |
| 325 | + <p><strong>Question:</strong> Have you used any preprocessor? What are the reasons to use preprocessor?</p> |
| 326 | + <p><strong>Answer:</strong> .</p> |
| 327 | + |
| 328 | + ref: <a href="http://www.frontendjournal.com/most-common-technical-interview-question-for-frontend-developers/">most common interview questions</a> |
| 329 | +</div> |
283 | 330 | <div id="div_section_article"> |
284 | 331 | <h2>13. only screen</h2> |
285 | 332 | <p><strong>Question:</strong> What is the use of only?</p> |
|
0 commit comments