示例<html> <head> </head> <style> .scroll{ display:block; border: 2px solid green; padding:10px; margin-top:10px; width:300px; height:50px; overflow:scroll; } .auto{ display:block; border: 2px solid green; padding:10px; margin-top:10px; width:300px; height:50px; overflow:auto; } </style> <body> <p>example of scroll value:</p> <div class = "scroll"> this is demo content. this is demo content. this is demo content. this is demo content. this is demo content. this is demo content. this is demo content. this is demo content. this is demo content. this is demo content. this is demo content. this is demo content. </div> <br /> </body></html>
以上就是当一个元素的内容可能比分配给它的空间更大时,应该怎么办?的详细内容。
