Меню
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON PHP КАК СДЕЛАТЬ
     ❯   

CSS Справочники


CSS Свойства





mask-size



Example

Set the size (in percent) for the mask layer image:

.mask1 {
  -webkit-mask-image: url(sw3logo.png);
  mask-image: url(sw3logo.png);
  -webkit-mask-size: 70%;
  mask-size: 70%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
Try it Yourself »

Definition mask-size

The mask-size property specifies the size of the mask layer image.

Default value: auto
Inherited: no
Animatable: no. Read about animatable
Version: CSS3
JavaScript syntax: object.style.maskSize="100px 200px"

Browser Support mask-size

The numbers in the table specify the first browser version that fully supports the property.

Numbers followed by -webkit- specify the first version that worked with a prefix.

Property
mask-size 4.0 -webkit- 79.0 -webkit- 53.0 4.0 -webkit- 15.0 -webkit-

CSS Syntax mask-size

mask-size: auto|size|contain|cover|initial|inherit;

Property Values mask-size

Value Description
auto This is default
size Specifies the size of the mask image in px, em, etc, or in %
contain Scales the mask image in a way that both its width and its height fit inside the container
cover Scales the mask image in a way that both its width and its height cover the container
initial Sets this property to its default value. Read about initial
inherit Inherits this property from its parent element. Read about inherit


More Examples mask-size

Example

Set the size (in pixels) for the mask layer image:

.mask1 {
  -webkit-mask-image: url(sw3logo.png);
  mask-image: url(sw3logo.png);
  -webkit-mask-size: 200px 200px;
  mask-size: 200px 200px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
Try it Yourself »

Related Pages mask-size

CSS reference: mask-image property

CSS reference: mask-mode property

CSS reference: mask-origin property

CSS reference: mask-position property

CSS reference: mask-repeat property

CSS tutorial: CSS Masking



×

Связаться с отделом продаж

Если вы хотите использовать услуги schoolsw3 как образовательное учреждение, команда или предприятие, отправьте нам электронное письмо:
sales@schoolsw3.com

Сообщить об ошибке

Если вы хотите сообщить об ошибке или внести предложение, отправьте нам электронное письмо:
help@schoolsw3.com

Schoolsw3 оптимизирован для обучения и подготовки. Примеры могут быть упрощены для улучшения чтения и обучения. Учебники, ссылки и примеры постоянно проверяются, чтобы избежать ошибок, но мы не можем гарантировать полную правильность всего контента.
При использовании Schoolsw3 вы соглашаетесь прочитать и принять наши условия использования,
политику использования файлов cookie и конфиденциальности.

Авторское право 1999- © Copyright. Все права защищены. Schoolsw3 работает на SW3.CSS.