Html 如何制作响应性强的内容

Html 如何制作响应性强的内容,html,css,responsive-design,Html,Css,Responsive Design,我不知道如何使这段代码具有响应性。请回顾下面的例子,让我知道 #appalign{font系列:“蒙特塞拉特常规”,无衬线;左边距:32%;右边距:10%;文本对齐:对齐;文本对齐:单词间}#appalign 1{font系列:“蒙特塞拉特常规”,无衬线;右边距:55%;文本对齐:对齐;文本对齐:单词间} #appalign2{字体系列:“蒙特塞拉特常规”,无衬线;左边距:55%;右边距:%;右边距:10%;文本对齐:对齐;文本对齐:单词间} 我们相信关系的力量——不仅是你和我们之间的关系,

我不知道如何使这段代码具有响应性。请回顾下面的例子,让我知道

#appalign{font系列:“蒙特塞拉特常规”,无衬线;左边距:32%;右边距:10%;文本对齐:对齐;文本对齐:单词间}#appalign 1{font系列:“蒙特塞拉特常规”,无衬线;右边距:55%;文本对齐:对齐;文本对齐:单词间}
#appalign2{字体系列:“蒙特塞拉特常规”,无衬线;左边距:55%;右边距:%;右边距:10%;文本对齐:对齐;文本对齐:单词间}

我们相信关系的力量——不仅是你和我们之间的关系,也是你和客户之间的关系。我们与您合作,传递您的信息,从而吸引您的受众和目标群体。我们帮助您培养正确的外观、感觉和个性–一个不同的品牌形象,让您在拥挤的市场中脱颖而出,最重要的是获得关注。我们让事情变得简单,更注重为您提供个性化和有效的客户服务

我们提供与您的营销相结合的广告解决方案,为您带来有效的效果。我们利用新媒体的力量打造一个强大的品牌,在我们确信这一点之前,我们不会向您推荐。我们混合使用在线、印刷、电子邮件和社交媒体渠道,以与客户产生共鸣并形成持久联系的方式讲述您的品牌故事


我刚刚发现,使用大众汽车的装置可以实现这一点。它们是与设置视口宽度相关联的单位。存在一些缺点,如缺少传统浏览器支持,但这绝对是一个值得认真考虑的问题。此外,您还可以为较旧的浏览器提供回退,例如:

p 
{
font-size: 30px;
font-size: 3.5vw;
}

我刚刚发现,使用大众汽车的装置可以做到这一点。它们是与设置视口宽度相关联的单位。存在一些缺点,如缺少传统浏览器支持,但这绝对是一个值得认真考虑的问题。此外,您还可以为较旧的浏览器提供回退,例如:

p 
{
font-size: 30px;
font-size: 3.5vw;
}

请使用此css,它工作正常

 * {
      -webkit-box-sizing: border-box;
      -moz-box-sizing: border-box;
      box-sizing: border-box;
    }
    *:before,
    *:after {
      -webkit-box-sizing: border-box;
      -moz-box-sizing: border-box;
      box-sizing: border-box;
    }
    #appalign1{font-family:"montserrat-regular",sans-serif;width:50%;float:left;text-align:justify;text-justify:inter-word;padding-right:1%;}
    #appalign2{font-family:"montserrat-regular",sans-serif;width:50%;float:left;text-align:justify;text-justify:inter-word;}

请使用这个css,它工作得很好

 * {
      -webkit-box-sizing: border-box;
      -moz-box-sizing: border-box;
      box-sizing: border-box;
    }
    *:before,
    *:after {
      -webkit-box-sizing: border-box;
      -moz-box-sizing: border-box;
      box-sizing: border-box;
    }
    #appalign1{font-family:"montserrat-regular",sans-serif;width:50%;float:left;text-align:justify;text-justify:inter-word;padding-right:1%;}
    #appalign2{font-family:"montserrat-regular",sans-serif;width:50%;float:left;text-align:justify;text-justify:inter-word;}

好了。你没有使用彩车等等,我是为你做的

<div id="appalign1">
  <p style="color: black">We believe in the power of a relationship – not just a relationship between you and us but with your customers as well. We work with you to deliver your message so that it captivates your audience and Target Group.<span style="font-weight:bold;color:black;"><font size="4"> We help you develop the right look, feel and personality</font></span> – a different<span style="font-weight:bold;color:black;"><font size="4"> brand image</font></span> that allows you to stand apart in the crowded market and above all get noticed. We make things simple and focus more on giving personal and effective customer service to you.</p>
</div>
<div id="appalign2">
  <p style="color: black">We provide<span style="font-weight:bold;color:black;"><font size="4"> advertising solutions</font></span> that integrates with your marketing to bring you effective results. We harness the power of new media to build a strong brand and till we are convinced about one, we won’t recommend it to you. We use a mix of<span style="font-weight:bold;color:black;"><font size="4"> online, print, email, and social media</font></span> channels to tell your brand's story in a way that resonates with customers and forms lasting bonds.</p>
</div>

#appalign1 , #appalign2{float:left;width:50%;padding:0 20px;box-sizing: border-box;}

@media( max-width: 640px ) {
  #appalign1 , #appalign2 { width: 100%; }
}

我们相信关系的力量——不仅是你和我们之间的关系,也是你和客户之间的关系。我们与您合作,传递您的信息,从而吸引您的受众和目标群体。我们帮助您培养正确的外观、感觉和个性–一个不同的品牌形象,让您在拥挤的市场中脱颖而出,最重要的是获得关注。我们让事情变得简单,更注重为您提供个性化和有效的客户服务

我们提供与您的营销相结合的广告解决方案,为您带来有效的效果。我们利用新媒体的力量打造一个强大的品牌,在我们确信这一点之前,我们不会向您推荐。我们混合使用在线、印刷、电子邮件和社交媒体渠道,以与客户产生共鸣并形成持久联系的方式讲述您的品牌故事

#appalign1,#appalign2{浮点:左;宽度:50%;填充:0 20px;框大小:边框框;} @介质(最大宽度:640像素){ #appalign1,#appalign2{宽度:100%;} }

好了。你没有使用彩车等等,我是为你做的

<div id="appalign1">
  <p style="color: black">We believe in the power of a relationship – not just a relationship between you and us but with your customers as well. We work with you to deliver your message so that it captivates your audience and Target Group.<span style="font-weight:bold;color:black;"><font size="4"> We help you develop the right look, feel and personality</font></span> – a different<span style="font-weight:bold;color:black;"><font size="4"> brand image</font></span> that allows you to stand apart in the crowded market and above all get noticed. We make things simple and focus more on giving personal and effective customer service to you.</p>
</div>
<div id="appalign2">
  <p style="color: black">We provide<span style="font-weight:bold;color:black;"><font size="4"> advertising solutions</font></span> that integrates with your marketing to bring you effective results. We harness the power of new media to build a strong brand and till we are convinced about one, we won’t recommend it to you. We use a mix of<span style="font-weight:bold;color:black;"><font size="4"> online, print, email, and social media</font></span> channels to tell your brand's story in a way that resonates with customers and forms lasting bonds.</p>
</div>

#appalign1 , #appalign2{float:left;width:50%;padding:0 20px;box-sizing: border-box;}

@media( max-width: 640px ) {
  #appalign1 , #appalign2 { width: 100%; }
}

我们相信关系的力量——不仅是你和我们之间的关系,也是你和客户之间的关系。我们与您合作,传递您的信息,从而吸引您的受众和目标群体。我们帮助您培养正确的外观、感觉和个性–一个不同的品牌形象,让您在拥挤的市场中脱颖而出,最重要的是获得关注。我们让事情变得简单,更注重为您提供个性化和有效的客户服务

我们提供与您的营销相结合的广告解决方案,为您带来有效的效果。我们利用新媒体的力量打造一个强大的品牌,在我们确信这一点之前,我们不会向您推荐。我们混合使用在线、印刷、电子邮件和社交媒体渠道,以与客户产生共鸣并形成持久联系的方式讲述您的品牌故事

#appalign1,#appalign2{浮点:左;宽度:50%;填充:0 20px;框大小:边框框;} @介质(最大宽度:640像素){ #appalign1,#appalign2{宽度:100%;} }

最简单的方法是添加一个容器并在其上应用
display:flex
,避免大量不必要的CSS

然后,如果需要,您可以使用媒体查询切换小屏幕的flex方向

您必须将所有内联样式移动到CSS文件中,并删除过时标记的使用,如
font

.container{
显示器:flex;
}
阿帕林先生{
字体系列:“蒙特塞拉特常规”,无衬线;
利润率:10px;
文本对齐:对齐;
文本对齐:字间对齐
}
@全部和全部介质(最大宽度:660像素){
.集装箱{
弯曲方向:立柱;
}
}

我们相信关系的力量——不仅是你和我们之间的关系,也是你和客户之间的关系。我们与您合作,以传递您的信息,从而吸引您的受众和目标群体。我们帮助您培养正确的外观、感觉和个性——一种不同的品牌形象,让您在拥挤的市场中脱颖而出,最重要的是获得关注。我们让事情变得简单,更注重提供个人和有效的帮助 为您提供客户服务

我们提供广告解决方案,与您的营销相结合,为您带来有效的效果。我们利用新媒体的力量打造强大的品牌,直到成功 确信有一个,我们不会推荐给你。W