简体   繁体   English

语义Ui模态抖动行为

[英]Semantic-Ui modal jittery behaviour

I am using Semantic-UI for designing a site for my project and I while using modal, I am seeing a jittery behaviour. 我正在使用Semantic-UI为我的项目设计一个站点,而在使用模式时,我看到了一个紧张的行为。

Here is the link : Click Here to Enter The Project Site 这是链接: 单击此处进入项目站点

Press the 'Register' button to open up the modal dialog, and you will notice the dialog being formed in the left side and then shows up properly. 按下“注册”按钮以打开模式对话框,您会注意到该对话框在左侧形成,然后正确显示。

Cannot understand the reason for this behaviour. 无法理解这种行为的原因。

Some help will be appreciated. 一些帮助将不胜感激。

Code : 代码:

<!-- Register Box -->
    <div class="ui fluid standard modal" id="RegisterBox">
        <div class="ui attached message" id="headerImage">
            <div class="header" id="head">
                Welcome to MeetUp!
            </div>
            <p id="subHead">Sign-up for a new account here.</p>
        </div>
        <div class="ui error form segment" id="regForm">
            <div class="ui black row">
                <div class="two fields">
                    <div class="field">
                        <label>First Name</label>
                        <input class="text" placeholder="First Name" type="text" name="fname" id="txtFn">
                    </div>
                    <div class="field">
                        <label>Last Name</label>
                        <input class="text" placeholder="Last Name" type="text" name="lname" id="txtLn">
                    </div>
                </div>
            </div>

            <div class="two fields">
                <div class="field">
                    <label>Email</label>
                    <input class="text" placeholder="Email Id" type="email" name="email" id="txtEmail">
                </div>
                <div class="field">
                    <label>Gender</label>
                    <div class="text ui selection dropdown" id="cmbSex">
                        <div class="default text">Select</div>
                        <i class="dropdown icon"></i>
                        <input type="hidden" name="gender">
                        <div class="menu">
                            <div class="item" data-value="male" data-text="Male">
                                <i class="male icon"></i>
                                Male
                            </div>
                            <div class="item" data-value="female" data-text="Female">
                                <i class="female icon"></i>
                                Female
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="two fields">
                <div class="field">
                    <label>Password</label>
                    <input class="text" type="password" placeholder="Password" name="pass" id="txtPassword">
                </div>
                <div class="field">
                    <label>Confirm Password</label>
                    <input class="text" type="password" placeholder="Password" name="Cpass" id="txtRepeatPass">
                </div>
            </div>
            <div class="ui blue button" id="btnSubmit">Register</div>
        </div>
        <i class="close icon"></i>
    </div>

I've detected the problem. 我发现了问题。 This is a caused by the new version of the library. 这是由库的新版本引起的。 Using the old version[stable] solved it. 使用旧版本[稳定]解决了它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM