【发布时间】:2014-01-13 20:12:09
【问题描述】:
我很难理解如何防止 Safari(在 Mac 上)对嵌套在某些 div 中的段落元素的对齐造成严重破坏。
可以在www.redkitesmusic.com/redkites 使用 Safari 网络浏览器查看问题 加载页面后,选择 THE BAND。
这是我在 Safari 中得到的:
这就是我在 Chrome(和其他)中得到的内容
我已尝试使用 Web 开发人员检查器解决此问题,但无法找出问题所在。
HTML 和 CSS 紧随其后。
谢谢如果您能理解我的问题并提供可能的解决方案!
这是 HTML sn-p:
<div id="divPopupContent" style="display: block;" class="bios">
<div style="float:left;width:30%">
<p>About me: I was born in Cameroon in 1989 but have lived in The Highlands of Scotland for most of my life. In 2010 I dropped out of my Ecology course in Aberdeen and moved to Guildford to form a band…</p>
这是适用的 CSS
#divPopupContent {
background-color: #EEF;
border-radius: 6px 6px 6px 6px;
color: #333;
float: left;
font-size: 0.9em;
height: 92%;
letter-spacing: 1px;
line-height: 1.6em;
margin-left: 6px;
/*margin-top: -18px;*/
margin-top: 6px;
overflow: hidden;
padding: 4px;
padding-right: 18px;
position: relative;
width: 72%;
z-index: 10;
}
#divPopupContent.bios {
width: 78%;
}
#divPopupContent div:first-child {
height: 97%;
opacity: 0.8;
overflow-x: hidden;
overflow-y: auto;
padding: 6px;
}
【问题讨论】: