Javascript 如何使容器具有相同的大小?

Javascript 如何使容器具有相同的大小?,javascript,html,css,Javascript,Html,Css,我有这个网站: 由于某些原因,这些容器都有不同的尺寸。我怎样才能使它们都一样,使我的网站更具视觉吸引力 这是我的html: img.article{ 浮动:左; 宽度:300px; 高度:300px; 对象匹配:覆盖; } a:链接{ 颜色:黑色; 背景色:透明; 文字装饰:无; } a:参观了{ 颜色:黑色; 背景色:透明; 文字装饰:无; } a:悬停{ 颜色:黑色; 背景色:透明; 文字装饰:无; } a:主动的{ 颜色:黑色; 背景色:透明; 文字装饰:无; } 站在Blog Post

我有这个网站: 由于某些原因,这些容器都有不同的尺寸。我怎样才能使它们都一样,使我的网站更具视觉吸引力

这是我的html:

img.article{
浮动:左;
宽度:300px;
高度:300px;
对象匹配:覆盖;
}
a:链接{
颜色:黑色;
背景色:透明;
文字装饰:无;
}
a:参观了{
颜色:黑色;
背景色:透明;
文字装饰:无;
}
a:悬停{
颜色:黑色;
背景色:透明;
文字装饰:无;
}
a:主动的{
颜色:黑色;
背景色:透明;
文字装饰:无;
}
站在Blog Posts.btn{
宽度:150px;
高度:150像素;
背景:ddd;
位置:相对位置;
文本对齐:居中;
利润率:15px;
溢出:隐藏;
边界半径:100%;
显示:内联块;
}
.btn.download{
背景:#00CCFF;
}
.btn.download.cloud{
盒子阴影:0px 0px 0px 0px 0px 0px 0px 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 PX 0 0 0 0 0 0 0 0 0 PX 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 A3cc,1像素1像素1像素1像素1像素0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0中国中国中国,2像素00 A30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 15px 15px 00a3cc、13px 13px 00a3cc、14px 14px 00a3cc、15px 15px 00a3cc、16px 16px 00a3cc、17px 17px 00a3cc、18px 18px 00a3该公司,21PX21PX(21PX21PX)00a3cc,21PX21PX(21PX21PX)00a3cc,22PX22PX22PX(22PX22PX)00a3cc,22PX22PX(00a3cc,23PX23PX(23PX23PX23PX)00a3cc,23PX23PX 23px(00a3cc),24PX24PX24PX24PX 24px(00a3cc,25PX25PX25PX25PX25PX(30px)00a3像素)00A300a3中国,00a3cc,26px,26px(26px)是作为作为作为作为一个中国中国中国中国的A3A3A3A3A3A3,26px,26px作为作为作为作为一个中国,26像素,该该公司,26PX26作为作为作为作为作为作为一个中国的一个中国,该公司,该公司的一个中国,该公司,该公司的26像素,该00a3cc、31px 31px 00a3cc、32px 32px 00a3cc、33px 33px 00a3cc、34px 34px 00a3cc、35px 35px 00a3cc、36px 36px 00a3cc、37p该公司共有39PX39PX(39PX39PX)00A3C,40PX40PX40PX(40PX40PX)00A3C,40PX40PX40PX(00A3C),00A3C,40PX40PX40PX(00A3C),41PX41PX(41PX41PX)00A3C,41PX41PX41PX(00A3A3C)00a3cc,38PX38PX38PX38PX 38px(38px)38px(38px)00A3A3A3A3A3A300?00A3C,39PX39PX39PX,00A3A3A3A3300,00A3A3A3A3C,44PX44PX44PX4444PX44PX44PX44PX44PX44PX44像素(该)00A300A300A300A300A3协协协协协协协协协协协协协协协,00A300A300A3协协协协协协,00A333333协协,00A3协协协,00A3A349px 49px#00a3cc,50px 50px#00a3cc;
}
.btn.download.arrow{
-webkit动画:下载1s线性无限;
动画:下载1s线性无限;
}
.btn.upload{
背景#F49845;
}
.btn.upload.cloud{
盒影:0px 0px 0px 0px(f1515)f15f15f15f15f15f15f15f15f15f15f15f15f15f15f15f15f15f15f15、3p3p3px(f15f7d15、4px 4px(f15px0px)f15px 0px 0px(f15px)f15px0px0px(f15f15f7d15、3px3p3p3px3px(f7px)f7d15、f7f7d15、3p3px(f7d15、3px(f7d15、4pxxxxxxxx3px(f15px)f7d15、4px(f1515px)、f15px(f15f15f15、4px(f15px)f15f15px)、f1515F17D15,12px 12px#f17d15,13px 13px#f17d15,14px 14px#f17d15,15px 15px#f17d15,16px 16px#f17d15,17px 17px#f17d15,18px 18px#f17d15、15、15、15、15、19 PX 19 PX 19 PX 19 PX F17D115、20 PX 20 PX 20 PX f17d15、21 PX21 PX f17d15、22 PX22 PX f17d15、22 PX22 PX 22 PX f17d15、15、19 PX19 PX19 PX 19 PX 15、15、24 PX24 PX24 PX 18 18像素18 18像素15、25 PX25 PX25像素15、17像素15、26 PX18像素15、26 PX26 PX26像素15、26 PX26 PX26像素15、18像素15、18像素15、15、15、27 PX27 PX27像素、27 PX27像素27像素、18、18、15、15、15、15、18像素、18像素、15、15、15、15、15、15、15、15、15、15、15、15、15、18 PX7像素、18像素、18像素、15、15、15、15、18像素、18像素、15、15、18像素、PX30PX f17d15,31PX31PX f17d15,32PX32PX f17d15,33PX33PX f17d15,34PX34PX f17d15,35PX35PX f17d15,36PX36PX f17d15,37p第七层1515、39px 39px(第七层1515)、41px 40px(第七层15)、40px 40px(第七层15)、40px 40px(第七层15)、41px 40px(第七层15)、41px 41px(第七层15、41px 41px(第七层15、38px 38px 38px(第七层15)、41px(第五层15、38px(第七层15)、f17层15、15px 38px 39px(第三层)41px(第七层)41px(第七层)第七层15、39px(第七层)、第五层15px)第五层)、41px(第七层)、41px(第七层15、41px(第三层)、第七层)、41px(第七层)、41px(第五、第三层)、第三像素像素像素像素像素像素像素像素#f17d15,49px 49px#f17d15,50px 50px#f17d15;
}
.btn.upload.arrow{
-webkit动画:uplaod 1s线性无限;
动画:uplaod 1s线性无限;
}
.btn.upload.arrow:之后{
顶部:自动;
底部:100%;
边框颜色:透明透明#97CA03透明;
}
.云{
宽度:100px;
高度:40px;
位置:相对位置;
背景:#fff;
显示:内联块;
边界半径:50px;
保证金:60像素自动0;
盒子阴影:0px 0px 0px 0px 0px 0px 0px 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 PX 0 0 0 0 0 0 0 0 0 PX 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 A3cc,1像素1像素1像素1像素1像素0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0中国中国中国,2像素00 A30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 15px 15px 00a3cc、13px 13px 00a3cc、14px 14px 00a3cc、15px 15px 00a3cc、16px 16px 00a3cc、17px 17px 00a3cc、18px 18px 00a3该公司,21PX21PX(21PX21PX)00a3cc,21PX21PX(21PX21PX)00a3cc,22PX22PX22PX(22PX22PX)00a3cc,22PX22PX(00a3cc,23PX23PX(23PX23PX23PX)00a3cc,23PX23PX 23px(00a3cc),24PX24PX24PX24PX 24px(00a3cc,25PX25PX25PX25PX25PX(30px)00a3像素)00A300a3中国,00a3cc,26px,26px(26px)是作为作为作为作为一个中国中国中国中国的A3A3A3A3A3A3,26px,26px作为作为作为作为一个中国,26像素,该该公司,26PX26作为作为作为作为作为作为一个中国的一个中国,该公司,该公司的一个中国,该公司,该公司的26像素,该00a3cc、31px 31px 00a3cc、32px 32px 00a3cc、33px 33px 00a3cc、34px 34px 00a3cc、35px 35px 00a3cc、36px 36px 00a3cc、37p该公司共有39PX39PX(39PX39PX)00A3C,40PX40PX40PX(40PX40PX)00A3C,40PX40PX40PX(00A3C),00A3C,40PX40PX40PX(00A3C),41PX41PX(41PX41PX)00A3C,41PX41PX41PX(00A3A3C)00a3cc,38PX38PX38PX38PX 38px(38px)38px(38px)00A3A3A3A3A3A300?00A3C,39PX39PX39PX,00A3A3A3A3300,00A3A3A3A3C,44PX44PX44PX4444PX44PX44PX44PX44PX44PX44像素(该)00A300A300A300A300A3协协协协协协协协协协协协协协协,00A300A300A3协协协协协协,00A333333协协,00A3协协协,00A3A349px 49px#00a3cc,50px 50px#00a3cc;
}
云:之后,
.云:以前{
内容:'';
位置:绝对位置;
宽度:60px;
高度:60px;
边界半径:100%;
顶部:-20px;
背景:#fff;
左:5px;
}
.云:以前{
宽度:40px;
高度:40px;
左:50px;
}
.阿罗{
位置:绝对位置;
左:0;
右:0;
保证金:自动;
z指数:5;
顶部:10px;
宽度:15px;
高度:10px;
背景#97CA03;
显示:内联块;
}
.阿罗:之后{
内容:'';
位置:绝对位置;
左:-8px;
最高:100%;
边框:15px实心透明;
边框顶部颜色:#97CA03;
}
@-webkit关键帧下载{
0% {
-webkit转换:translateY(-20px);
转换:translateY(-20px);
}
100% {
-webkit转换:translateY(20px);
变换:translateY(20px);
不透明度:0;
}
}
@关键帧下载{
0% {
-webkit转换:translateY(-20px);
转换:translateY(-20px);
}
100% {
-webkit转换:translateY(20px);
变换:translateY(20px);
不透明度:0;
}
}
@-webkit关键帧上传{
0% {
-webkit转换:translateY(20px);
变换:translateY(20px);
}
100% {
-webkit转换:translateY(-20px);
转换:translateY(-20px);
不透明度:0;
}
}
@关键帧uplaod{
0% {
-webkit转换:translateY(20px);
变换:translateY(20px);
}
100% {
-webkit转换:translateY(-20px);
转换:translateY(-20px);
不透明度:0;
}
}

&emsp

  • <ul class="list"> <li class="list-item"> <div class="list-content"> <h2>Title</h2> <img src="http://baconmockup.com/250/200" alt="" /> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Distinctio, eveniet.</p> <a href="">Link</a> </div> </li> <li class="list-item"> <div class="list-content"> <h2>Title</h2> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Labore, vel, quia. Non nostrum, consectetur ipsum doloribus enim maiores a laudantium, odio vel blanditiis id ea dolorum expedita fugit incidunt commodi.</p> <a href="">Link</a> </div> </li> <li class="list-item"> <div class="list-content"> <h2>Title</h2> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Labore, vel, quia. Non nostrum, consectetur ipsum doloribus enim maiores a laudantium.</p> <a href="">Link</a> </div> </li> <li class="list-item"> <div class="list-content"> <h2>Title</h2> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consequatur optio ipsa fuga vel repudiandae impedit illum delectus nihil error animi nobis quaerat quidem, amet, praesentium aspernatur inventore numquam! Totam, dolorem inventore reprehenderit, culpa obcaecati!</p> <a href="">Link</a> </div> </li> <li class="list-item"> <div class="list-content"> <h2>Title</h2> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quo veniam tempore vero velit deleniti corporis recusandae placeat eum repellendus modi architecto, iste, numquam nulla, praesentium fuga soluta eos consequatur sequi expedita! Ea aspernatur explicabo optio ducimus officia blanditiis voluptas possimus veniam maxime!</p> <a href="">Link</a> </div> </li> <li class="list-item"> <div class="list-content"> <h2>Title</h2> <img src="http://baconmockup.com/250/200" alt="" /> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nostrum molestiae esse dolore corporis velit fugiat ipsam tempore optio dicta. Magnam iusto facere, maxime! Praesentium quo laborum, deserunt adipisci. Ipsam officia delectus repudiandae, aperiam magnam blanditiis fuga similique.</p> <a href="">Link</a> </div> </li> </ul>
* {
  box-sizing: border-box;
}
body {
  background-color: #f5f5f5;
  margin: 0 auto; 
  max-width: 60em;
  line-height: 1.3;
}
ul, li {
  margin: 0;
  padding: 0;
  list-style: none;
}
img {
  width: 100%;
}
h2 {
  margin-top: 0;
  margin-bottom: 0.4em;
}

/*Flex items*/
.list {
  display: flex;
  flex-wrap: wrap;
}
.list-item {
    display: flex; 
  padding: 0.5em;
    width: 100%;
}
@media all and (min-width: 40em) {
  .list-item {
    width: 50%;
  }
}
@media all and (min-width: 60em) {
  .list-item {
    width: 33.33%;
  }
}
.list-content {
    background-color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1em;
    width: 100%;
}
.list-content p {
    flex: 1 0 auto;
}
.blog-posts .down-content {
    padding: 40px;
    border-right: 1px solid #eee;
    border-left: 1px solid #eee;
    border-bottom: 1px solid #eee;
    min-height: 45em; 
}