Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Styles and classes#413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
20 commits
Select commitHold shift + click to select a range
5505fec
WIP
dbritto-devOct 12, 2020
bd4b67a
WIP
dbritto-devOct 12, 2020
557466d
WIP
dbritto-devOct 12, 2020
dbb4233
WIP
dbritto-devOct 13, 2020
cd18376
WIP
dbritto-devOct 17, 2020
07af51a
WIP
dbritto-devOct 17, 2020
833c318
WIP
dbritto-devOct 17, 2020
4aaafbf
Minor changes
dbritto-devOct 17, 2020
1910164
Update 2-ui/1-document/08-styles-and-classes/article.md
dbritto-devOct 17, 2020
a6bce5b
Update 2-ui/1-document/08-styles-and-classes/article.md
dbritto-devOct 17, 2020
5bae251
Update 2-ui/1-document/08-styles-and-classes/article.md
dbritto-devOct 17, 2020
68bfee0
Update 2-ui/1-document/08-styles-and-classes/article.md
dbritto-devOct 17, 2020
5516205
Update 2-ui/1-document/08-styles-and-classes/article.md
dbritto-devOct 17, 2020
da858fa
Update 2-ui/1-document/08-styles-and-classes/article.md
dbritto-devOct 17, 2020
d3f7554
Update 2-ui/1-document/08-styles-and-classes/article.md
dbritto-devOct 17, 2020
4394f5b
Update 2-ui/1-document/08-styles-and-classes/article.md
dbritto-devOct 17, 2020
1409fae
Update 2-ui/1-document/08-styles-and-classes/article.md
dbritto-devOct 17, 2020
b335cf5
Update 2-ui/1-document/08-styles-and-classes/article.md
dbritto-devOct 17, 2020
0022411
Update 2-ui/1-document/08-styles-and-classes/article.md
dbritto-devOct 18, 2020
e2cc988
Update 2-ui/1-document/08-styles-and-classes/article.md
dbritto-devOct 18, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,23 +2,23 @@ importance: 5

---

#Create a notification
#Crear una notificación

Write a function `showNotification(options)`that creates a notification: `<div class="notification">`with the given content. The notification should automatically disappear after1.5seconds.
Escribir una función `showNotification(options)`que cree una notificación: `<div class="notification">`con el contenido dado. La notificación debería desaparecer automáticamente despues de1.5segundos.

The options are:

```js
//shows an element with the text "Hello"near the right-top of the window
//muestra un elemento con el texto "Hello"cerca de la parte superior de la ventana
showNotification({
top: 10, // 10pxfrom the top of the window (by default 0px)
right: 10, // 10pxfrom the right edge of the window (by default 0px)
html: "Hello!", //the HTMLof notification
className: "welcome" //an additional class for thediv (optional)
top: 10, // 10pxdesde la parte superior de la ventana (por defecto es 0px)
right: 10, // 10pxdesde el borde derecho de la ventana (por defecto es 0px)
html: "Hello!", //el HTMLde la notificación
className: "welcome" //una clase adicional para el "div" (opcional)
});
```

[demo src="solution"]


UseCSSpositioning to show the element at giventop/right coordinates. The source document has the necessary styles.
Usar posicionamientoCSSpara mostrar el elemento en las coordenadas (top/right) dadas. El documento tiene los estilos necesarios.
Loading

[8]ページ先頭

©2009-2025 Movatter.jp