div块内容问题

来源:百度知道 编辑:UC知道 时间:2024/07/04 12:52:06
请问怎样控制div块内容在客户端的显示位置,既在屏幕上的显示位置。
我的前提是不可以用margin、border、padding、text-align等命令来设置编辑端的显示位置,既固定编辑端的位置再来设置客户端(屏幕)的位置。
如下面这段代码我要111显示在222的下面,但<bood>标签内的内容不可以做任何改动。
代码:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>div块内容显示位置设置</title>
<style type="text/css">
#w{
width:200px;
height:200px;
text-align:left;
background-color:#CCCCCC;
}
</style>
</head>

<body>
<div id="w">
<div>111</div>
<div>222</div>
</div>
</body>
</html>
另二问题地址:
http://zhidao.baidu.com/question/54235647.html
<div>内容1 <div>内容2 </div></div> 不换行 DIV+CSS 布局问题. DIV表格居中问题 DIV+CSS的问题 DIV+CSS问题 JavaScript+DIV 问题~~~ div css问题 div+css的问题 div +css问题 div格式问题