-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
translation(js): Web/JavaScript/Reference/Global_Objects/String/big
- Loading branch information
1 parent
7667040
commit 0924dca
Showing
1 changed file
with
68 additions
and
0 deletions.
There are no files selected for viewing
68 changes: 68 additions & 0 deletions
68
files/uk/web/javascript/reference/global_objects/string/big/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
--- | ||
title: String.prototype.big() | ||
slug: Web/JavaScript/Reference/Global_Objects/String/big | ||
tags: | ||
- Deprecated | ||
- HTML wrapper methods | ||
- JavaScript | ||
- Method | ||
- Prototype | ||
- Reference | ||
- String | ||
- Polyfill | ||
browser-compat: javascript.builtins.String.big | ||
--- | ||
{{JSRef}} {{deprecated_header}} | ||
|
||
Метод **`big()`** створює HTML-елемент {{HTMLElement("big")}}, який змушує рядок виводитися великим шрифтом. | ||
|
||
> **Примітка:** Елемент \<big> було видалено у специфікації [HTML5](/en-US/docs/Web/Guide/HTML/HTML5), і він не повинен більше використовуватись. | ||
> Натомість веброзробникам слід застосовувати властивості [CSS](/en-US/docs/Web/CSS). | ||
## Синтаксис | ||
|
||
```js | ||
big() | ||
``` | ||
|
||
### Повернене значення | ||
|
||
Рядок, який містить HTML-елемент {{HTMLElement("big")}}. | ||
|
||
## Опис | ||
|
||
Метод `big()` вбудовує рядок всередину елемента `<big>`: "`<big>рядок тексту</big>`". | ||
|
||
## Приклади | ||
|
||
### Застосування методу big() | ||
|
||
Наступний приклад використовує методи рядка для зміни його розміру: | ||
|
||
```js | ||
var worldString = 'Привіт, світе!'; | ||
|
||
console.log(worldString.small()); // <small>Привіт, світе!</small> | ||
console.log(worldString.big()); // <big>Привіт, світе!</big> | ||
console.log(worldString.fontsize(7)); // <font size="7">Привіт, світе!</font> | ||
``` | ||
|
||
Використавши об'єкт {{domxref("HTMLElement/style", "element.style")}}, можна дістатися до атрибута `style` елемента, і маніпулювати розміром більш загально, наприклад: | ||
|
||
```js | ||
document.getElementById('yourElemId').style.fontSize = '2em'; | ||
``` | ||
|
||
## Специфікації | ||
|
||
{{Specifications}} | ||
|
||
## Сумісність із браузерами | ||
|
||
{{Compat}} | ||
|
||
## Дивіться також | ||
|
||
- Поліфіл методу `String.prototype.big` наявний у [`core-js`](https://github.com/zloirock/core-js#ecmascript-string-and-regexp) | ||
- {{jsxref("String.prototype.fontsize()")}} | ||
- {{jsxref("String.prototype.small()")}} |