From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- .../reference/global_objects/string/big/index.html | 76 ++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 files/pt-br/web/javascript/reference/global_objects/string/big/index.html (limited to 'files/pt-br/web/javascript/reference/global_objects/string/big') diff --git a/files/pt-br/web/javascript/reference/global_objects/string/big/index.html b/files/pt-br/web/javascript/reference/global_objects/string/big/index.html new file mode 100644 index 0000000000..cbfea513f1 --- /dev/null +++ b/files/pt-br/web/javascript/reference/global_objects/string/big/index.html @@ -0,0 +1,76 @@ +--- +title: String.prototype.big() +slug: Web/JavaScript/Reference/Global_Objects/String/big +tags: + - Descontinuado + - JavaScript + - Prototipo + - Referencia + - String + - metodo +translation_of: Web/JavaScript/Reference/Global_Objects/String/big +--- +
{{JSRef}} {{deprecated_header}}
+ +

O método big() cria um elemento HTML <big> fazendo com que o texto dentro dele seja exibido uma uma fonte maior.

+ +
+

Nota de uso: O elemento <big> foi removido no HTML5 e não deve mais ser usado. Em vez disso, web developers devem usar a propriedade CSS correspondente.

+
+ +

Sintaxe

+ +
str.big()
+ +

Valor retornado

+ +

Uma string contendo um elemento HTML.

+ +

Descrição

+ +

O método big() cria uma string dentro de uma tag <big>:
+ "<big>str</big>".

+ +

Exemplos

+ +

Usando big()

+ +

Os exemplos abaixo usam métodos do objeto String para alterar o tamanho de uma string:

+ +
var worldString = 'Olá, mundo';
+
+console.log(worldString.small());     // <small>Olá, mundo</small>
+console.log(worldString.big());       // <big>Olá, mundo</big>
+console.log(worldString.fontsize(7)); // <fontsize=7>Olá, Mundo</fontsize>
+
+ +

Com o objeto element.style você pode selecionar o atributo style do elemento e manipulá-lo de forma mais genérica, por exemplo:

+ +
document.getElementById('#oIdDoElemento').style.fontSize = '2em';
+
+ +

Especificações

+ + + + + + + + + + +
Specification
{{SpecName('ESDraft', '#sec-string.prototype.big', 'String.prototype.big')}}
+ + + + + +

{{Compat("javascript.builtins.String.big")}}

+ +

Veja também

+ + -- cgit v1.2.3-54-g00ecf