Logo
سلام, محسن م

پایه نمونه

Below is a static modal example (meaning its position and display have been overridden).


                        <div class="modal position-relative d-block" tabindex="-1" role="dialog">
                            <div class="modal-dialog" role="document">
                                <div class="modal-content">
                                    <div class="modal-header">
                                        <h5 class="modal-title">مودال Title</h5>
                                        <button type="button" class="close" data-dismiss="modal" aria-label="نزدیک">
                                            <i aria-hidden="true" class="ki ki-close"></i>
                                        </button>
                                    </div>
                                    <div class="modal-body">
                                        <p>مودال body text goes here.</p>
                                    </div>
                                    <div class="modal-footer">
                                        <button type="button" class="btn btn-secondary" data-dismiss="modal">نزدیک</button>
                                        <button type="button" class="btn btn-primary">ذخیره تغییرات</button>
                                    </div>
                                </div>
                            </div>
                        </div>

نسخه نمایشی زنده

Toggle a working modal demo by clicking the button below. It will slide down and fade in from the top of the page.


                        <!-- دکمه trigger modal-->
                        <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleمودال">
                            راه اندازی مودال
                        </button>

                        <!-- مودال-->
                        <div class="modal fade" id="exampleمودال" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
                            <div class="modal-dialog" role="document">
                                <div class="modal-content">
                                    <div class="modal-header">
                                        <h5 class="modal-title" id="exampleModalLabel">مودال Title</h5>
                                        <button type="button" class="close" data-dismiss="modal" aria-label="نزدیک">
                                            <i aria-hidden="true" class="ki ki-close"></i>
                                        </button>
                                    </div>
                                    <div class="modal-body">
                                        ...
                                    </div>
                                    <div class="modal-footer">
                                        <button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">نزدیک</button>
                                        <button type="button" class="btn btn-primary font-weight-bold">ذخیره تغییرات</button>
                                    </div>
                                </div>
                            </div>
                        </div>

بک دراپ استاتیک

When backdrop is set to static, the modal will not close when clicking outside it. Click the button below to try it.


                        <!-- دکمه trigger modal-->
                        <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#staticبازگشتdrop">
                            راه اندازی مودال
                        </button>

                        <!-- مودال-->
                        <div class="modal fade" id="exampleمودال" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="staticبازگشتdrop" aria-hidden="true">
                            <div class="modal-dialog" role="document">
                                <div class="modal-content">
                                    <div class="modal-header">
                                        <h5 class="modal-title" id="exampleModalLabel">مودال Title</h5>
                                        <button type="button" class="close" data-dismiss="modal" aria-label="نزدیک">
                                            <i aria-hidden="true" class="ki ki-close"></i>
                                        </button>
                                    </div>
                                    <div class="modal-body">
                                        ...
                                    </div>
                                    <div class="modal-footer">
                                        <button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">نزدیک</button>
                                        <button type="button" class="btn btn-primary font-weight-bold">ذخیره تغییرات</button>
                                    </div>
                                </div>
                            </div>
                        </div>

اندازه های مختلف

مودالs have three optional sizes, available via modifier classes to be placed on a .modal-dialog. These sizes triggers on at certain breakpoints to avoid horizontal scrollbars on narrower viewports.


                        <div class="modal fade" id="exampleمودالSizeSm" tabindex="-1" role="dialog" aria-labelledby="exampleمودالSizeSm" aria-hidden="true">
                            <div class="modal-dialog modal-dialog-centered modal-sm" role="document">
                                ...
                            </div>
                        </div>

                        <div class="modal fade" id="exampleمودالSizeLg" tabindex="-1" role="dialog" aria-labelledby="exampleمودالSizeLg" aria-hidden="true">
                            <div class="modal-dialog modal-dialog-centered" role="document">
                                ...
                            </div>
                        </div>

                        <div class="modal fade" id="exampleمودالSizeLg" tabindex="-1" role="dialog" aria-labelledby="exampleمودالSizeLg" aria-hidden="true">
                            <div class="modal-dialog modal-dialog-centered modal-lg" role="document">
                                ...
                            </div>
                        </div>

                        <div class="modal fade" id="exampleمودالSizeSm" tabindex="-1" role="dialog" aria-labelledby="exampleمودالSizeSm" aria-hidden="true">
                            <div class="modal-dialog modal-dialog-centered modal-xl" role="document">
                                ...
                            </div>
                        </div>

اسکرول طولانی محتوا

When modals become too long for the user’s viewport or device, they scroll independently from the page itself. Try the demo below.


                        <!-- دکمه trigger modal-->
                        <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleمودالLong">
                            راه اندازی مودال
                        </button>

                        <!-- مودال-->
                        <div class="modal fade" id="exampleمودالLong" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="staticبازگشتdrop" aria-hidden="true">
                            <div class="modal-dialog" role="document">
                                <div class="modal-content">
                                    <div class="modal-header">
                                        <h5 class="modal-title" id="exampleModalLabel">مودال Title</h5>
                                        <button type="button" class="close" data-dismiss="modal" aria-label="نزدیک">
                                            <i aria-hidden="true" class="ki ki-close"></i>
                                        </button>
                                    </div>
                                    <div class="modal-body">
                                        ...
                                    </div>
                                    <div class="modal-footer">
                                        <button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">نزدیک</button>
                                        <button type="button" class="btn btn-primary font-weight-bold">ذخیره تغییرات</button>
                                    </div>
                                </div>
                            </div>
                        </div>

ایجاد کردن a scrollable modal body by adding .modal-dialog-scrollable to .modal-dialog.


                        <!-- دکمه trigger modal-->
                        <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleمودالScrollable">
                            راه اندازی مودال
                        </button>

                        <!-- مودال-->
                        <div class="modal fade" id="exampleمودالScrollable" tabindex="-1" role="dialog" aria-labelledby="staticبازگشتdrop" aria-hidden="true">
                            <div class="modal-dialog modal-dialog-scrollable" role="document">
                                <div class="modal-content">
                                    <div class="modal-header">
                                        <h5 class="modal-title" id="exampleModalLabel">مودال Title</h5>
                                        <button type="button" class="close" data-dismiss="modal" aria-label="نزدیک">
                                            <i aria-hidden="true" class="ki ki-close"></i>
                                        </button>
                                    </div>
                                    <div class="modal-body" style="height: 300px;">
                                        ...
                                    </div>
                                    <div class="modal-footer">
                                        <button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">نزدیک</button>
                                        <button type="button" class="btn btn-primary font-weight-bold">ذخیره تغییرات</button>
                                    </div>
                                </div>
                            </div>
                        </div>

Add data-scroll="true" and data-height="300" attributes to .modal-body to use اسکرول بار based scrolling.


                        <!-- دکمه trigger modal-->
                        <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleمودالسفارشیScrollable">
                            راه اندازی مودال
                        </button>

                        <!-- مودال-->
                        <div class="modal fade" id="exampleمودالسفارشیScrollable" tabindex="-1" role="dialog" aria-labelledby="staticبازگشتdrop" aria-hidden="true">
                            <div class="modal-dialog modal-dialog-scrollable" role="document">
                                <div class="modal-content">
                                    <div class="modal-header">
                                        <h5 class="modal-title" id="exampleModalLabel">مودال Title</h5>
                                        <button type="button" class="close" data-dismiss="modal" aria-label="نزدیک">
                                            <i aria-hidden="true" class="ki ki-close"></i>
                                        </button>
                                    </div>
                                    <div class="modal-body">
                                        <div data-scroll="true" data-height="300">
                                            ...
                                        <div>
                                    </div>
                                    <div class="modal-footer">
                                        <button type="button" class="btn btn-light-primary font-weight-bold" data-dismiss="modal">نزدیک</button>
                                        <button type="button" class="btn btn-primary font-weight-bold">ذخیره تغییرات</button>
                                    </div>
                                </div>
                            </div>
                        </div>

مرکز به صورت عمودی

Add .modal-dialog-centered to .modal-dialog to vertically center the modal.


                        <!-- دکمه trigger modal-->
                        <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleمودالمرکز">
                            راه اندازی مودال
                        </button>

                        <!-- مودال-->
                        <div class="modal fade" id="exampleمودالمرکز" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="staticبازگشتdrop" aria-hidden="true">
                            <div class="modal-dialog modal-dialog-centered" role="document">
                                <div class="modal-content">
                                    ...
                                </div>
                            </div>
                        </div>

Tooltips And Popovers

Tooltips and popovers can be placed within modals as needed. When modals are closed, any tooltips and popovers within are also automatically dismissed.


                        <div class="modal-body">
                            <h5>Popover in a modal</h5>
                            <p>
                                This <a href="#" role="button" class="btn btn-secondary" data-toggle="popover" title="Popover title" data-content="Popover body content is set in this attribute.">button</a> triggers a popover on click.
                            </p>
                            <hr>

                            <h5>Tooltips in a modal</h5>
                            <p>
                                <a href="#" title="Tooltip" data-toggle="tooltip">This link</a> and
                                <a href="#" title="Tooltip" data-toggle="tooltip">that link</a> have tooltips on hover.
                            </p>
                        </div>

پروفایل کاربر 12 پیام

آخرین اعلان ها
اهداف دیگر موعد 2 روز
+28%
+50%
بهترین محصول موعد 2 روز
+8%

سبد خرید

iBlender بهترین وسایل آشپزخانه در سال 2020
دلار 350 5
پاک کننده هوشمند ابزار هوشمند برای پخت و پز
650دلار 4
دوربین دوربین حرفه ای برای عکس
150دلار 3
چاپگر 4D ساخت اشیاء منحصر به فرد
دلار 1450 7
موشن ابزار انیمیشن ایده آل
650دلار 7
پیام های سیستم
نویسندگان برتر موفق ترین ها
+82دلار
نویسندگان محبوب موفق ترین ها
+280دلار
کاربران جدید موفق ترین ها
+4500دلار
فعال مشتریان موفق ترین ها
+4500دلار
تم پرفروش موفق ترین ها
+4500دلار
اعلان ها
اهداف دیگر موعد 2 روز
+28%
+50%
بهترین محصول موعد 2 روز
+8%
مراقبت از مشتری
گزارشات
اعضا

انتخاب نسخه ی نمایشی

نسخه ی نمایشی 1
نسخه ی نمایشی 2
نسخه ی نمایشی 3
نسخه ی نمایشی 4
نسخه ی نمایشی 5
نسخه ی نمایشی 6
نسخه ی نمایشی 7
نسخه ی نمایشی 8
نسخه ی نمایشی 9
نسخه ی نمایشی 10
نسخه ی نمایشی 11
نسخه ی نمایشی 12
نسخه ی نمایشی 13
نسخه ی نمایشی 14
نسخه ی نمایشی 15
نسخه ی نمایشی 16
نسخه ی نمایشی 17
نسخه ی نمایشی 18
نسخه ی نمایشی 19
نسخه ی نمایشی 20
نسخه ی نمایشی 21
نسخه ی نمایشی 22
نسخه ی نمایشی 23
نسخه ی نمایشی 24
نسخه ی نمایشی 25
نسخه ی نمایشی 26
نسخه ی نمایشی 27
نسخه ی نمایشی 28
نسخه ی نمایشی 29
نسخه ی نمایشی 30