菜鸟学堂
在线运行
源代码
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>菜鸟学堂(edu.jb51.net)</title> <style> div { width:110px; height:110px; border:thin solid black; overflow-x:hidden; overflow-y:hidden; } </style> </head> <body> <div><p style="width:140px"> In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since. 'Whenever you feel like criticizing anyone,' he told me, 'just remember that all the people in this world haven't had the advantages that you've had.' </p></div> <p>Overflow-x指定是否要剪辑的左/右边缘的内容.</p> <p>Overflow-y指定是否要剪辑的顶部/底部边缘的内容</p> </body> </html>
运行结果
在线运行
菜鸟学堂 edu.jb51.net