aaaa div>
bbbb
dddd
How to arrange bbbb and dddd in this code (if you don’t know what it means, you can understand it like this. bbbb is in the upper right corner, dddd is in the upper left corner)
Reply to discussion (solution)
<!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><title>无标题页</title><script type='text/javascript' src='http://code.jquery.com/jquery-1.7.2.js'></script></head><body><style type="text/css">#head { margin:5px 500px auto;width:1000px; height:300px; background:#9FF;}#main {width:700px; height:300px; background:#9FF; float:right;}#tail { margin:5px 800px auto;width:700px; height:300px; background:#9FF;}#left{width:300px; height:700px; background:#9FF;float:left;}</style><body><div id="main">bbbb</div><div id="left">dddd</div><div style='clear:both'></div><div id="head">aaaa</div><div id="tail">cccc</div></body></html>
Copy after login
HTML code
Untitled page
It may work for you but not for me. I guess it’s the resolution and other issues here
The 1st floor is right, I learned from it. .
I wonder if absolute positioning can be used? How to use this. . I haven't used it yet
HTML code
1
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
-
2024-10-22 09:46:29
-
2024-10-13 13:53:41
-
2024-10-12 12:15:51
-
2024-10-11 22:47:31
-
2024-10-11 19:36:51
-
2024-10-11 15:50:41
-
2024-10-11 15:07:41
-
2024-10-11 14:21:21
-
2024-10-11 12:59:11
-
2024-10-11 12:17:31