div怎麼分左右兩半
來源:文萃谷 7.14K
導語:div是層疊樣式表中的定位技術。以下的是本站小編為大家蒐集的div分左右實例,希望對你有所幫助。
代碼非常簡單:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"">
<html xmlns="">
<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>