所以,我試圖將具有投影的texte居中。但不是與CSS屬性。我使用span et:之前讓它跨瀏覽器。所以,這是什麼樣子:嘗試使用投影中心文本
的HTML:
<h3 title="Say hello to Stack Overflow"><span>Say hello to Stack Overflow</span></h3>
而CSS:
h3 {
margin: 0 auto;
font-size: 29pt;
color: #fefefe;
letter-spacing: 1px;
position: relative;
color: blue;
}
span {
position: absolute;
top: 0;
}
h3:before {
display: block;
padding: 4px;
content: attr(title);
color: rgba(0, 0, 0, .15);
}
的問題是,當我嘗試居中H3(與文本對齊),只有陰影部分去中心(here is a jsFiddle)
你有解決方案嗎?
嗯,謝謝:)我會看看CSS3派,謝謝:) – Axiol
CSS3 PIE處理文本陰影?因爲我只看到箱子影子:/ – Axiol
嘿,你是對的,我的錯!更新後。我非常討厭IE。 –