【问题标题】:Bootstrap Content not full screen on Mobile phone screen引导内容在手机屏幕上未全屏
【发布时间】:2020-05-03 23:46:24
【问题描述】:

此表单中的内容不会在手机屏幕中全屏显示,而是在计算机和 Tab 屏幕中正常显示。请建议解决。

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<div class="row d-flex">
    <div class="col-md-6 ftco-animate">
        <div class="blog-entry align-self-stretch d-flex">
            <div class="col-sm-12 col-md-12 col-lg-12 text p-4 d-block">
                <h3 class="heading mt-3"><strong>Login to the Website.</strong></h3>
                <form id="logging" name="logging" method="POST" action="<?php echo 
    $_SERVER['PHP_SELF']; ?>">
                    <div class="form-group">
                        <label> Email </label><span class="required text-danger"> *</span> <input type="email" id="email" name="email" class="form-control" placeholder="Your Email">
                    </div>
                    <div class="form-group">
                        <label> Password</label><span class="required text-danger"> *</span><input type="password" id="pw" name="pw" class="form-control" placeholder="Password">
                    </div>
                    <div><small class="text-primary"><a href="contact.php" data-toggle="modal" data- target="#modalAppointment"><span>Forget Password...</span></a> </small></div>
                    </br>
                    <div class="form-group">
                        <input type="submit" name="LogIn" id="LogIn" value="LogIn" class="btn btn-primary 
    py-3 px-5">
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

【问题讨论】:

  • 你在哪个设备上测试..
  • @Amaresh 在我的手机上.. ..请在您的移动设备上查看此问题的实时站点ejobs.lk/postjob.php
  • 查看我的答案@Gayan Chaturanga

标签: php html css bootstrap-4 bootstrap-modal


【解决方案1】:

移除.blog-entry .text的宽度

.blog-entry .text {
    position: relative;
    border-top: 0;
    border-radius: 2px;
    width: 55%;/*Remove this Width*/
}

删除此类text

<div class="col-sm-12 col-md-12 text p-4 d-block"> 

<div class="col-sm-12 col-md-12 p-4 d-block">

【讨论】:

  • 不,它不起作用..盒子大小根据屏幕大小而不是盒子的内容而变化。
  • 您是否在 Live 网站上查看过这个问题?它仍然没有解决..ejobs.lk/postjob.php
【解决方案2】:

在 .blog-entry .text 类中移除 width 属性。

在您的 style.css 文件中,.blog-entry .text 类位于 行号。 2764

.blog-entry .text {
    position: relative;
    border-top: 0;
    border-radius: 2px;
    /* width: 55%; */  --- /*remove this width */
}

【讨论】:

  • @GayanChaturanga 我的答案是正确的检查正确
  • 你在 .blog-entry .text 类上接受了相同的答案(即)宽度,首先我只正确回答了你的问题@GayanChaturanga
  • Thax 对删除宽度后的支持:55% 问题未解决,但删除“文本”对我有用 ...Thaxxx 再次你们俩..
猜你喜欢
  • 2020-11-15
  • 2012-11-30
  • 2023-04-03
  • 2013-09-30
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多