源代码
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>编程字典</title> <style> li { display: inline; } </style> </head> <body> <p>作为水平菜单显示列表:</p> <ul> <li><a href="#" target="_blank">HTML</a></li> <li><a href="#" target="_blank">CSS</a></li> <li><a href="#" target="_blank">JavaScript</a></li> </ul> </body> </html>
运行结果