div怎么分左右两半
导语:div是层叠样式表中的定位技术。以下的是小编为大家搜集的div分左右实例,希望对你有所帮助。
代码非常简单:
<!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>exhibitor114</title>
<style type="text/css">
<!--
#exhibitor114 margin:0 auto;width:auto;height:100%
#exhibitorleft float:left; width:44%; height:100%; background:#eeeeee
#exhibitorright float:left; width:56%;height:100%;
-->
</style>
</head>
<body>
<p id="exhibitor114" style="float:inherit">
<p id="exhibitorleft">左侧</p>
<p id="exhibitorright">右侧</p>
</p>
</body>
</html>