怎么用css写出一个1px的水平分割线。
4个回答
展开全部
<!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=utf-8" />
<title>分割线</title>
<style type="text/css">
div {
height:1px;
width:100%;
background:#00CCFF;
overflow:hidden;
}
</style>
</head>
<body>
<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=utf-8" />
<title>分割线</title>
<style type="text/css">
div {
height:1px;
width:100%;
background:#00CCFF;
overflow:hidden;
}
</style>
</head>
<body>
<div> </div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>分割线</title>
<style type="text/css">
div {
height:1px;
width:100%;
background:#00CCFF;
overflow:hidden;
}
</style>
</head>
<body>
<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">
<!--
#Layer1 {
position:absolute;
width:295px;
height:50px;
z-index:1;
left: 10px;
top: 183px;
}
-->
</style>
</head>
<body>
<hr align="center" width="500" size="50" color="#FF0000"/>
<hr align="center" width="300" size="30" color="#000000"/>
<hr align="center" width="100" size="1" color="#00ff00"/>
<hr align="center" width="300" size="1" color="#0000FF"/>
<hr align="center" width="500" size="1" color="#FF00"/>
<hr align="center" width="500" size="1" color="#FF00"/>
删除线删除线删除线删除线删除线删除线删除线
<div id="Layer1">
<hr align="center" width="500" size="1" color="#000000"/></div>
</body>
</html>
<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">
<!--
#Layer1 {
position:absolute;
width:295px;
height:50px;
z-index:1;
left: 10px;
top: 183px;
}
-->
</style>
</head>
<body>
<hr align="center" width="500" size="50" color="#FF0000"/>
<hr align="center" width="300" size="30" color="#000000"/>
<hr align="center" width="100" size="1" color="#00ff00"/>
<hr align="center" width="300" size="1" color="#0000FF"/>
<hr align="center" width="500" size="1" color="#FF00"/>
<hr align="center" width="500" size="1" color="#FF00"/>
删除线删除线删除线删除线删除线删除线删除线
<div id="Layer1">
<hr align="center" width="500" size="1" color="#000000"/></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=utf-8" />
<title>分割线</title>
<style type="text/css">
div {
height:1px;
width:100%;
background:#00CCFF;
overflow:hidden;
}
</style>
</head>
<body>
<div> </div>
</body>
</html>
一像素水平分割线
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>分割线</title>
<style type="text/css">
div {
height:1px;
width:100%;
background:#00CCFF;
overflow:hidden;
}
</style>
</head>
<body>
<div> </div>
</body>
</html>
一像素水平分割线
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询