如何在保持精確比率的情況下重新調整響應式設計的以下<div>
?調整響應式設計的後續div的大小
HTML
<div>
<p class="ls-l" data-ls="offsetxin:30; delayin:1000; skewxin:-40; offsetxout:-30; durationout:1000; skewxout:-40;">
<span class="slide-span textStyle">
<strong class="slide2-header bigBlueHeader">Louez votre matériel médical en ligne</strong>
<br><br>
LMAD est la première solution nationale de <strong>location de matériel médical</strong>
<br>
en ligne pour le domicile. Une livraison garantie du jour au lendemain<br>
<strong>sur toute la France</strong> et sans avance de frais.
</span>
</p>
</div>
CSS
.textStyle {
color:#454545;
display:inline-block;
font-weight:300;
font-size:18px;
text-align: center;
line-height:22px;
vertical-align:top;
padding:13px 20px 13px 30px;
margin:0 0 20px 0;
-webkit-border-radius: 3px 3px;
-moz-border-radius: 3px 3px;
border-radius: 3px 3px;
white-space: nowrap;
}
.bigBlueHeader {
font-weight: 500;
font-size:32px;
line-height:40px;
color:#4195cd;
white-space: nowrap;
border-bottom: 1px solid #bababa;
padding-bottom: 10px;
}
最後但並非最不重要這裏是什麼,我現在有一個JSFiddle Example。
你指的是哪個元素?代碼中沒有'div'。另外,沒有關於尺寸的信息,也沒有任何元素的尺寸規則。最後,好像你正在使用一個插件,它從'data-ls'tag獲取數據來改變'p'標籤的行爲。 – 2014-12-04 18:38:40
對不起,整個元素將在一個div。我錯過了 。我想要的大小將是786,360,1024 – 2014-12-04 19:00:16
你可以重新粘貼包括div的代碼嗎?和它的任何風格?你在使用bootstrap嗎?如果是這樣,什麼版本?此外,如果該div將在另一個div中,那也會影響輸出。我們需要更多的信息。 – Termato 2014-12-04 19:25:32