源代码
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>编程字典</title> <style> p { border: 1px solid black; outline: 5px dotted red; } </style> </head> <body> <h2>outline属性</h2> <p><b>注意:</b> IE8 支持outline属性 只有!DOCTYPE被指定.</p> </body> </html>
运行结果