Skip to content

Commit 0ef2daa

Browse files
solution.md done
1 parent 844a648 commit 0ef2daa

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • 2-ui/4-forms-controls/4-forms-submit/1-modal-dialog

2-ui/4-forms-controls/4-forms-submit/1-modal-dialog/solution.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
A modal window can be implemented using a half-transparent `<div id="cover-div">` that covers the whole window, like this:
1+
یک modal window می‌تواند بااستفاده از یک `<div id="cover-div">` نیمه‌شفاف که تمام پنچره را می‌پوشاند پیاده‌سازی شود،‌ مثل این:
22

33
```css
44
#cover-div {
@@ -13,8 +13,8 @@ A modal window can be implemented using a half-transparent `<div id="cover-div">
1313
}
1414
```
1515

16-
Because the `<div>` covers everything, it gets all clicks, not the page below it.
16+
از آنجایی که `<div>` همه چیز را می‌پوشاند،آن تمام کلیک‌ها را می‌گیرد،نه صفحه‌ی زیر آن.
1717

18-
Also we can prevent page scroll by setting `body.style.overflowY='hidden'`.
18+
همچنین با `body.style.overflowY='hidden'` می‌توانیم از scroll کردن صفحه جلوگیری کنیم.
1919

20-
The form should be not in the `<div>`, but next to it, because we don't want it to have `opacity`.
20+
فرم نباید در `<div>` باشد، بلکه باید کنار آن باشد، زیرا نمی‌خواهیم که `opacity` داشته باشد.

0 commit comments

Comments
 (0)