Home > Web Front-end > JS Tutorial > body text

javascript big()方法将字符串显示为大号字体

WBOY
Release: 2016-06-01 09:54:41
Original
1369 people have browsed it

big 方法把 HTML 标记放置在 String 对象中的文本两端。

基本语法

<code class="language-javascript">strVariable.big()</code>
Copy after login

必选项 strVariable 参数可以是任意的 String 对象或文字。

说明

下面示例说明了 big 方法是如何工作的:

<code class="language-javascript">var strVariable = "This is a string object"; 
strVariable = strVariable.big( );</code>
Copy after login

在执行完最后一个语句后,strVariable 的值为:

<code class="language-javascript"><big>This is a string object</big></code>
Copy after login

该函数不检查该标记是否已经被应用于该字符串了。 

Related labels:
js
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!