我在一個容器中有2個div,但是當我調整我的瀏覽器的大小時,正確的div不包裹文本以修復調整後的瀏覽器大小。我如何獲得正確的div來包裝文本?文本不包裹在正確的格
#container {
width: 498px;
position: absolute;
left: 50%;
top: 50%;
margin-left: -150px; /* Half of width */
margin-top: -50px; /* Half of height */
word-wrap: break-word;
overflow: visible;
padding-left:10px;
}
.left {
float: left;
width: 200px;
text-align:left;
word-wrap:break-word;
}
.right {
float: right;
width: auto;
text-align:left;
position:relative;
word-wrap: break-word;
overflow: auto;
}
</style>
</head>
<body>
<div id="container">
<div class="left">
<h3>For Students</h3>
• <a href="#savings-ambassador">Savings Ambassador</a><br>
• <a href="#appointment-coordinator">Appointment Coordinator</a><br>
• <a href="#savings-guru">Savings Guru</a>
</div>
<div class="right">
<h3>For Graduates</h3>
• <a href="#director">Director, User Acquisition and Campus Events</a><br>
• <a href="#receptionist">Receptionist/PA</a>
</div>
</div>
我看到http://jsfiddle.net/R8fXQ/1/,並注意到如果我調整我的瀏覽器的大小,文本仍然不包裹在正確的div – Bruce