我现在将样式标记嵌入到我的CSS中,并且还添加了max-height:90%,但div元素仍然溢出到其他元素中。我做错了什么???
<head>
<style>
.atlas.region-map
{
border: 2px solid #716E64;
max-width: 500px;
overflow: hidden;
margin: 0;
float: left;
}
.atlas.map-content.info-col
{
margin-left: 549px;
width: 335px;
}
.atlas.map-content.info-col p
{
color: #5c5642;
margin-top: 15px;
font-size: 12px;
}
.Atlas_Test
{
height: 300px;
font-size: 14px;
overflow-y: scroll;
max-height: 90%;
}
</style>
</head>
<body>
<div class="info-col">
<p>Content to go here!!!</p>
</div>
</body>