最新的Web開發教程
 

JavaScript串大()方法

JavaScript的字符串引用 JavaScript的字符串引用

顯示在一個大字體的字符串:

var str = "Hello World!";
var result = str.big();
試一試»

更多“試一試”的例子。


定義和用法

big()方法不規範,並預期在所有瀏覽器可能無法正常工作。

big()方法被用來顯示在一個大的字體的字符串。

此方法返回嵌入在字符串<big>標籤,就像這樣:

<大>字符串</大>

<big>標籤不支持HTML5。 使用CSS來代替。


瀏覽器支持

方法
big()

句法

string.big()

參數

沒有。

技術細節

返回值: 嵌入在一個字符串<big>標籤
JavaScript的版本: 1.0

例子

更多示例

相關方法的演示:

var txt = "Hello World!";

document.write("The original string: " + txt);
document.write("<p>Big: " + txt.big() + "</p>");
document.write("<p>Small: " + txt.small() + "</p>");
document.write("<p>Bold: " + txt.bold() + "</p>");
document.write("<p>Italic: " + txt.italics() + "</p>");
document.write("<p>Fixed: " + txt.fixed() + "</p>");
document.write("<p>Strike: " + txt.strike() + "</p>");
document.write("<p>Fontcolor: " + txt.fontcolor("green") + "</p>");
document.write("<p>Fontsize: " + txt.fontsize(6) + "</p>");
document.write("<p>Subscript: " + txt.sub() + "</p>");
document.write("<p>Superscript: " + txt.sup() + "</p>");
document.write("<p>Link: " + txt.link("http://www.w3ii.com") + "</p>");
document.write("<p>Blink: " + txt.blink() + " (works only in Opera)</p>");
試一試»

JavaScript的字符串引用 JavaScript的字符串引用