1
CSS的元件,fiddleCSS三角形,歌劇錯誤顯示:
#scroll_jump
{
margin-top: 310px;
position: fixed;
margin-left: 20px;
display: none;
}
#jump_link
{
display: block;
width: 70px;
height: 20px;
background: #BBDAF7;
color:white;
font-family: Arial,Liberation Sans,DejaVu Sans,sans-serif;
font-size: 16px;
font-weight: bold;
text-decoration: none;
text-align: center;
padding-left: -1px;
}
#jump_link:after
{
content: '';
position: absolute;
width: 0;
height: 0;
border: 35px solid;
border-bottom-color:#BBDAF7;
border-top-color:white;
border-left-color:#ffffff ;
border-right-color: #ffffff;
top: 0;
margin-top: -70px;
left: 49%;
margin-left: -35px; /* adjust for border width */
}
正確顯示:瀏覽器,Firefox,IE。
它的外觀在Opera:
附:到目前爲止,Opera創造了比IE更多的麻煩!
哦,@ ralph.m的答案很可能是比我好。另外,請注意,Opera很快就會更改爲webkit引擎,這意味着該行爲將更加貼近Safari和Chrome。 –