61,110
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>
</title>
<style type="text/css">
#top #catalog
{
float:right;
}
#top #catalog li
{
width:95px;
float:left;
}
</style>
</head>
<body>
<div id="top"><a href="Default.aspx">
<img alt="logo" title="logo" src="logo.gif" /></a>
<ul id="catalog">
<li>首页</li>
<li>新闻中心</li>
<li>产品与服务</li>
<li>成功案例</li>
<li>关于我们</li>
</ul>
</div>
</body>
</html>
#top a{
float: left;
}
<!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 content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>无标题 1</title>
<style type="text/css">
#top #catalog
{
float:right;
}
#catalog li
{
width:95px;
float:left;
}
</style>
</head>
<body>
<div id="top">
<div style="float:left" ><a href="Default.aspx">
<img alt="logo" title="logo" src="logo.gif" /></a>
</div>
<div style=" float:right" >
<ul id="catalog">
<li>首页</li>
<li>新闻中心</li>
<li>产品与服务</li>
<li>成功案例</li>
<li>关于我们</li>
</ul>
</div>
</div>
</body>
</html>
<!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="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
#top #catalog
{
float:right;
}
#top #logo {float:left;}
#top #catalog li
{
width:95px;
float:left;
}
</style>
</head>
<body>
<div id="top">
<div id="logo"><a href="Default.aspx"><img alt="logo" title="logo" src="logo.gif" /></a></div>
<ul id="catalog">
<li>首页</li>
<li>新闻中心</li>
<li>产品与服务</li>
<li>成功案例</li>
<li>关于我们</li>
</ul>
</div>
</body>
</html>