Exporter (0) Imprimer
Développer tout
EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

-ms-scroll-snap-x property

Specifies values for the -ms-scroll-snap-type and -ms-scroll-snap-points-x properties.

This property is read/write.

Internet Explorer 10

 

Syntax

-ms-scroll-snap-x: <-ms-scroll-snap-type> <-ms-scroll-snap-points-x>

Property values

The scroll snap properties, separated by a space.

-ms-scroll-snap-type

Value of the -ms-scroll-snap-type property.

-ms-scroll-snap-points-x

Value of the -ms-scroll-snap-points-x property.

CSS information

Applies Tonon-replaced block-level elements and non-replaced inline-block elements
Mediainteractive
Inheritedno
Initial Value(see individual properties)

Remarks

This property has no effect on non-scrollable elements.

Starting with Windows 8.1, this property is also supported for mouse, keyboard, and touchpad interaction.

This property requires Windows 8 or later.

Examples

The -ms-scroll-snap-x property is a shorthand property. The following two selectors have an identical effect:


.scroll1 {
  -ms-scroll-snap-type: proximity;
  -ms-scroll-snap-points-x: snapList(100%, 200%, 300%, 400%, 500%);
}

.scroll2 {
  -ms-scroll-snap-x: proximity snapList(100%, 200%, 300%, 400%, 500%);
}

See also

CSSStyleDeclaration
Windows Store apps using JavaScript Samples: HTML scrolling, panning and zooming sample
Internet Explorer Samples: Scrolling, panning, and zooming with touch input

 

 

Microsoft réalise une enquête en ligne pour recueillir votre opinion sur le site Web de MSDN. Si vous choisissez d’y participer, cette enquête en ligne vous sera présentée lorsque vous quitterez le site Web de MSDN.

Si vous souhaitez y participer,
Afficher:
© 2014 Microsoft