li显示
去掉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 runat="server"> <title>Index</title> <style> li { list-style-type:none; } </style> </head> <body> <ul> <li>百度</li> <li>google</li> <li>雅虎</li> </ul> </body> </html>
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 runat="server"> <title>Index</title> <style> li { list-style-type:none; display:inline; } </style> </head> <body> <ul> <li>百度</li> <li>google</li> <li>雅虎</li> </ul> </body> </html>