- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如果我在 google chrome 中缩小/放大我的网站 (ctrl -/+),那么我会注意到我的网站布局开始“ split ”,因为我的所有 div 都开始四处移动。我显然不想要这个,只是希望网站在人们放大或缩小时保持不变,就像所有好的网站一样哈哈。
<section class="container-fluid">
<div class="row">
<div class="col-sm-6 padding-0">
<img src="/images/main.jpg" alt="img" class="img-responsive">
</div>
<div class=" col-sm-6 padding-0">
<!--<div class="row">-->
<!--<div class="col-md-12">-->
<div class="middle1">
<div class="middle2">
<h2>Casa uPVC Doors and Windows</h2>
<p style="display: inline-block">
Casa windows is a specialized product from Lancet Glass-LG TUFF family.Casa windows are
fabricated from <span class="blue">Indo-German uPVC profiles technology</span>.The top Quality breakthrough product
would be tailor made and is designed to exceed customer expectations.Top end manufacturing
standards through rigid quality control processes sets us apart, and gives Casa windows the
competitive edge.Casa windows will always strive to be customer centric and customer focused,
and believes in quality as its culture.
</p>
</div>
<div>
<h5 class="middle3">"Customer Satisfaction is Where We Begin"</h5>
<br/>
</div>
</div>
<!--<div class="row">-->
<div class="mid3">
<div class="mid1 ">
<h4>Request a Call Back</h4>
</div>
<div class="marge">
<form class="form-inline">
<div class="form-inline">
<input type="text" class="form-control" id="email" placeholder="name">
<input type="email" class="form-control" id="pwd" placeholder="email">
</div>
<div class="form-inline" style="margin-top:8px">
<input type="number" class="form-control" id="email" placeholder="phone number">
<input type="text" class="form-control" id="email" placeholder="Location">
</div>
<button type="submit" class="stop" style="margin-top:8px">Submit</button>
</form>
</div>
</div>
</div>
</div>
</section>
样式:
body{
font-family: 'Times New Roman', Times, serif;
}
.lastt{
font-family: 'Times New Roman', Times, serif;
}
.blue{
text-decoration: underline;
text-decoration-color:#0890c9;
font-weight: 700;
}
.title{
padding-top:20px;
font-weight:700;
font: 13px;
}
.h44,.h55,.h66{
display: inline-block;
}
.h5{
padding-top: 18px;
}
.main{
height:80px;
}
.middle1{
background-color: #034ea2;
}
.form-inline > * {
margin:8px 5px !important;
}
.middle2{
color: #ffffff;
padding-left: 15px;
padding-right: 10px;
padding-top: 15px;
text-align: justify;
text-justify: inter-word;
font-family: 'Times New Roman', Times, serif;
}
.para{
text-align: justify;
text-justify: inter-word;
font-family: 'Times New Roman', Times, serif;
font-weight: 500;
}
.marge{
margin-top: 10px;
}
.head1{
font-family: 'Times New Roman', Times, serif;
font-weight: 500;
}
.middle3{
text-align: center;
color: #ffffff;
font-weight: 600;
font-family: 'Times New Roman', Times, serif;
}
.mid2{
display: inline-block;
}
.mid3{
background-color:#0890c9;
padding-left: 15px;
padding-right: 10px;
padding-top: 5px;
color: #ffffff;
}
.mid1{
font-family: 'Times New Roman', Times, serif !important;
}
.input{
margin-top: 15px;
}
.stop
{
border-radius: 5px;
background-color:#034ea2;
color: #ffffff;
font-weight: 600;
border-color: red;
height:32px;
border-width: 1px;
}
.blo{
height:"30px";
background-color: #034ea2;
padding-top: 10px;
padding-bottom: 10px;
}
.border{
border-right: 1px solid #0890c9;
}
.im1{
padding-top: 8px;
padding-left: 8px;
}
.siz{
width: 40px;
}
.textt{
font-size: 15px;
color:#ffffff;
font-family: 'Times New Roman', Times, serif !important;
}
.set{
border-right: 1px;
}
.padding-0{
padding: 0 !important;
margin: 0 !important;
}
最佳答案
您可以使用 media queries根据缩放或屏幕尺寸更改布局:
i.e @media screen and (min-width:400px)
等于 100% 缩放时屏幕宽度为 400 像素或 200% 缩放时为 800 像素。
关于html - 在所有浏览器中放大或缩小时的网站布局 “breaks apart”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49259592/
我正在开发这样的摄影应用程序: https://play.google.com/store/apps/details?id=com.photo.editor.collage.maker.photobl
我正在尝试创建一个可以像在 Excel 中一样放大和缩小的 QTableView。 此处提出了类似的问题:Zooming function on a QWidget 但是,我在 PyQt 而不是 C
我想找到放大/缩小 TVirtualStringTree 的“最佳方法”。 “放大”的意思是模仿放大镜。 必须通过优先使用 TVirtualStringTree 控件中专门用于此目的的属性/方法来理解
有没有办法在emacs上放大和缩小(动态改变字体大小,相当流畅)? 最佳答案 尝试 C-x C-+ 和 C-x C--;即 Control-x Control-减号/Control-再加上。 在一个组
我在使用 Leaflet 时遇到问题。我在 map 上找到了一堆标记(在我的例子中它代表高尔夫球场)。但是,当我放大/缩小时,标记在 map 上移动。 浏览网页后,解决方案似乎是 iconAnchor
我在使用 Leaflet 时遇到问题。我在 map 上找到了一堆标记(在我的例子中它代表高尔夫球场)。但是,当我放大/缩小时,标记在 map 上移动。 浏览网页后,解决方案似乎是 iconAnchor
我正在开发一款非常低分辨率的游戏,我需要放大它才能看到。我知道我可以使用 Graphics.scale(float x, float y) 但我想放大到中心。如何缩放中心的图形?有没有更简单的方法来制
我有这种方法可以向前/向后和向左/向右平移相机。我不确定为什么,但是是什么导致相机在靠近地形放大时移动得很好,但在缩小时移动得非常慢? 这是我平移相机的方式: void CameraPan(){
我正在尝试像这样进行缩放:zoom the imageview on the double click in viewflipper in android 我尝试将该代码改编为我的项目,但它不起作用.
$(window).height() 获取页面加载时窗口的高度。但是,在放大/缩小时,我想要新的视点高度。这可能吗? 它可以很好地调整普通浏览器的大小,但我想在移动设备上放大/缩小不会触发 $(win
我正在尝试制作一个显示图像、 block 文本和按钮的面板,与下一个模型上显示的面板保持相似的比率,无论页面大小/缩放比例是多少。 我首先尝试使用横写文本的图像(即不对文本、图像和背景使用不同的部分或
Blockquote 大家好,请问是否可以在此代码中添加放大、缩小功能?我对 html 很陌生。任何帮助将不胜感激。 Career Center
我有一个由 3 个元素组成的搜索栏。 首先 a 保存从下拉列表中选择的值。 第二个清除选择的元素 第三个供用户在下拉菜单之间切换。 我的问题 - 当我缩放超过 100% 时,img 和按钮元素变大了一
我目前遇到网站页脚的问题。 当以 100% 大小(正常大小)处理时,页脚对齐得很好。但是,当我调整它的大小时,它完全不对齐并位于左侧,它需要保持居中。 屏幕截图: 相关 CSS: /* Dark bl
我实现了 3 个按钮来允许用户放大、缩小和返回到默认大小。 脚本可以进行放大和缩小,但我还有 2 个问题无法解决。 第一个问题: 每次放大时,要缩放的图像仍然到达我的窗口的限制,当图像左右没有任何空间
即使我在网页上放大或缩小,我也试图让 shadowbox 保持在同一个地方。我尝试以百分比而不是像素为单位来制作尺寸,但我不知道应该使用哪种属性组合。 这是我想要实现的结果:来自这里的外部阴影框效果h
我有点困惑。我按照 Apple 的建议放大 ScrollView ,但没有任何反应。 代码: import UIKit import SpriteKit class ScrollViewControl
我正在尝试通过导航实现类似 Bootstrap 的 header ,但我刚刚发现当我缩小窗口时, header 内的内容变得困惑并且 header 也最小化而不是保持相同的大小。我已经在页眉上使用了
我正在开发一个包含许多 UIView 的 iOS 应用程序。 UINavigation 用于在这些 View 之间导航。 我的一个 UIView 包含 UITextField。我的问题是,当我缩放时,
我正在尝试从 FITS 文件中绘制一些数据,我想知道是否有人知道如何关注绘图轴的某些区域?下面是一些示例代码: import pyfits from matplotlib import pyplot
我是一名优秀的程序员,十分优秀!