Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 1024x768 屏幕上,我有 2 个 div 并排在屏幕中央。如果我调整浏览器窗口的大小,第二个 div 会低于第一个 div。如何阻止这种情况发生:
http://oshirowanen.x10.mx/
One way is to add the white-space: nowrap; style to the container <body> and add the white-space: normal; style to the two <div>s.
white-space: nowrap;
<body>
white-space: normal;
<div>