方法1: function insert() { var str=""; var data="你的数据库数据"; str="<ul><li>"+data+"</ul></li>"; document.getElementById("test").innerHTML = str; } <body onload="insert()">…
Ul li 竖排 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="…