[英]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.ZC7A628CBA22E28EB17B5F5C6AE2A266AZ 添加这个:
#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.