2012-04-23 54 views
0

我想知道是否有可能使alernate文本多行,而不是單行? 謝謝,橡樹。asp net imagebutton替代文字多行

+0

你能GICE的例子還有一種可能,不知道你是什麼意思 – peter 2012-04-24 08:34:50

+0

作爲默認情況下,文本位於在圖像的左上角,如果它長於圖像的寬度,文本的其餘部分將消失。我想知道是否可以將文本分成多行。 – Oak 2012-04-25 09:13:42

回答

0

那麼,在某些瀏覽器上,你可以像這樣控制屬性,但它也會影響圖像本身的風格。

<style> 
img[alt] { border: 1px solid #000;display: block; } 
</style> 

在我的FF這顯示包裹的所有文字

+0

噢,我發現這也是http://stackoverflow.com/questions/4275737/how-to-style-the-string-of-an-alt-tag – peter 2012-04-25 16:17:00

0

<img id="img1" width=50 src="foo.jpg" alt="come here" 
    onmouseover="this.style.display='block';this.alt='looo oooooooo oooooooooo oooooooooo oooooong'" 
    onmouseout="this.style.display='inline';this.alt='come here'" 
/>