gpt4 book ai didi

HTML CSS DIV 面板

转载 作者:行者123 更新时间:2023-11-28 17:39:44 24 4
gpt4 key购买 nike

我想做这样的事情: enter image description here

到目前为止我做了什么:

enter image description here

谁能告诉我我是如何做到这一点的...

谢谢!提前...

参见jsFiddle


代码如下:

HTML:

<div class="panel panel1">Panel 1x</div>
<div class="panel panel1">Panel 1x</div>
<br>
<div class="panel panel2">Panel 2x</div>

CSS:

body {
background: #eeeeee;
}
.panel {
display: inline-block;
background: #ffffff;
min-height: 100px;
height: 100px;
box-shadow:0px 0px 5px 5px #C9C9C9;
-webkit-box-shadow:2px 2px 5px 5x #C9C9C9;
-moz-box-shadow:2px 2px 5px 5px #C9C9C9;
margin: 10px;
padding: 10px;
}
.panel1 {
min-width: 100px;
width: 100px;
}
.panel2 {
min-width: 245px;
width: 245px;
}

最佳答案

参见:jsFiddle

希望你能解决这个问题:

body {
background: #eeeeee;
}
.panel {
display: inline-block;
background: #ffffff;
min-height: 100px;
height: 100px;
margin: 10px;
padding: 10px;
}
.panel1 {
min-width: 100px;
width: 100px;
height: 120px;
margin-bottom: 0;
box-shadow: 0;
}
.panel2 {
min-width: 100px;
width: 100px;
}
.panel3 {
min-width: 245px;
width: 245px;
margin-top: 0px;
}
<div class="panel panel1">Panel 1x</div>
<div class="panel panel2">Panel 1x</div>
<br>
<div class="panel panel3">Panel 2x</div>

关于HTML CSS DIV 面板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24364626/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com