简体   繁体   English

手机屏幕上的 Bootstrap 内容未全屏

[英]Bootstrap Content not full screen on Mobile phone screen

In this Form content not stretch into full screen in the Mobile phone screen but in the computer and Tab screen its show properly.在这个Form中的内容在手机屏幕上没有拉伸成全屏,而是在电脑和Tab屏幕上正常显示。 pls advice to solve.请建议解决。

在此处输入图片说明

 <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>

In .blog-entry .text class remove width property.在 .blog-entry .text 类中删除 width 属性。

In your style.css file .blog-entry .text class is located at line no.在你的 style.css 文件 .blog-entry .text 类位于第 1行。 2764 2764

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

在此处输入图片说明

Remove width on .blog-entry .text删除.blog-entry .text上的宽度

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

OR或者

Remove this class text删除此类text

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

to

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

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

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