简体   繁体   English

网站在电脑上正常,但在智能手机上不行

[英]Site OK on computer but not in smartphone

My site appears correctly on computer screens, but not on smartphones.我的网站在计算机屏幕上正确显示,但在智能手机上却没有。

在此处输入图像描述

Like you can see, the main title (Phytothérapie) is cut and and the three buttons are not centered.如您所见,主标题(Phytothérapie)被剪掉了,三个按钮没有居中。

My code:我的代码:

<div class="col-12">
          <div class="row">
            <div class="col-12">
              <h1 class="mg-md h1-welcome-to-style tc-black">Bienvenue à la</h1>
              <h1 class="mg-md h1-bloc-0-style tc-black"><span style="font-size: 2rem !important;">FACULTÉ DE PHARMACIE DE L'ULB</span></h1>
              <h1 class="mg-sm tc-black h1-3-style"><span style="font-size: 70px !important;">PHYTOTHÉRAPIE</span></h1>
              <h2 class="mg-md tc-black h2-1-style"></h2>
            </div>
          </div>

and for the 3 blocks:对于 3 个区块:

<div class="phyto-container" onclick="location.href='{{$route}}';">
<div class="phyto-front" style="background-image: url({{$bgImage}})">
  <div class="phyto-inner">
    <p>{{ $titleFront }}</p>
  </div>
</div>

<div class="phyto-back">
  <div class="phyto-inner">
    <div>
      @foreach($paragraphs as $p)
        <p style="font-size: 1.1rem;margin-top:-10px !important; margin-left:-1px !important;">{{ $p }}</p>
      @endforeach
    </div>
  </div>
</div>

The URL of the site is https://overlap.ulb.be/public/该站点的URL是https://overlap.ulb.be/public/

Thank you in advance for help.提前感谢您的帮助。

You need to make your site responsive, you can either use frameworks, columns, rows, containers, or media screens.您需要使您的网站具有响应性,您可以使用框架、列、行、容器或媒体屏幕。

Have you tried margin-right: 10px;你试过 margin-right: 10px; on the title?在标题上?

In your style.css add this:在你的 style.ZC7A62​​8CBA22E28EB17B5F5C6AE2A266AZ 添加这个:

#unsets {
width: unset !important;
position: unset !important;
padding: unset !important;
margin: 10px;
}

and add to all of this divs above id:并添加到 id 上面的所有这些 div 中:

<div class="col-sm-4 col-md-2 col-lg-2 col-xl-2 align-self-center" id="unsets">

Refresh page or clean cache to see changes.刷新页面或清理缓存以查看更改。

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

相关问题 我希望网站能够响应计算机、智能手机和平板电脑 - I want the website to be responsive for computer, smartphone and tablet 计算机与智能手机/平板电脑上的图像颜色不同 - Different image color on computer vs smartphone/tablet 符号外观在我的电脑上正常,但在其他电脑上不同 - Symbol appearance is ok on my computer, but different on other 在智能手机上查看响应站点时,左像素被切掉 - Left pixels are cut off when viewing responsive site on smartphone 移动CSS恢复为智能手机上网站的桌面版本 - Mobile css reverts back to desktop version of site on smartphone 网站没有在我的计算机上显示 - Site not appearing as it does on my computer 什么会导致网站在IE中看起来和行为正常但在Firefox中不行? - What will cause a site to look and act OK in IE but not in Firefox? 是否可以使用 display:none 为响应式站点创建多个 CSS 导航栏? - Is it OK to use display:none to create multiple CSS navbars for a responsive site? 可以在Site.Master中进行轮播,但不能在Content元素中进行 - Carousel ok in Site.Master, but not inside Content element 403禁止使用网站资源(js,png,css),但权限还可以吗? - 403 Forbidden on site resources (js,png,css) but permissions are OK?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM