<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Document</title> <style type="text/css"> div{ width:800px; height:600px; padding: 15px; border-radius: 20px; background-image: url(1.jpg); } .text2 { color:black; text-indent:2em; line-height: 1.5em; } </style>> </head> <body> <div> <h3 style="color:brown;text-align: center;font-size:50px" onmouseover="change(this)" onmouseout="out(this)" >幽默笑话</h3> <p>不是吹的,我老婆就跟侦探一样,一眼就能看穿我: 1.前天我刚到家,老婆看了我一眼:腰杆儿挺得这么直,发工资了吧?赶紧交上来! 2.昨天我给她端了盆洗脚水,老婆就说:看来没藏私房钱,来,给你这个月的零花钱一百! 3.今天我一提给岳父母买衣服过年的事儿,老婆立刻说:你丫的,又想把赠品给你父母当新年礼物吧</p> </div> <<script type="text/javascript"> function change(element) { element.style.color = 'green' } function out(element) { element.style.color = '#CD3700' } </script> </body> </html>