gpt4 book ai didi

html - 阴影使图像 flex

转载 作者:行者123 更新时间:2023-11-28 05:34:45 25 4
gpt4 key购买 nike

请引用图片。如图所示,我想通过给它阴影来垂直 flex 图像。尝试了很多但无法得到它。

<html>
<head>
<title></title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">

<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>

<!-- Latest compiled JavaScript -->
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<style type="text/css">
.main{
background-image: url('http://www.detaildesignonline.com/contentimages/sky1285264350.jpg');
min-height: 600px;
border-bottom-style: solid;
border-bottom-color: rgba(4,58,106,1);
border-bottom-width: 10px;
}
.heading{
font-weight: 900;
color:#004B81;
}
.more{
color:rgba(159,67,66,1);
}
.leftForm{
background-color: rgba(224,237,222,1);
height: 350px;
}
.rightForm{
background-color: rgba(253,253,253,0.7);
height: 350px;
}

</style>
</head>
<body>
<div style="height:10px; background-color:orange"></div>
<div class="row">
<div class="col-sm-1">
</div>
<div class="col-sm-10">
<div><img src="http://tollfreecustomercarenumber.com/wp-content/uploads/2015/11/ICICI-bank.jpg" height="100px" width="250px"></div>
<div class=""></div>
</div>
<div class="col-sm-1"></div>
</div>
<div class="row">
<div class="col-sm-1">
</div>
<div class="col-sm-10 main">
<div class="col-sm-1">

</div>
<div class="col-sm-11">
<h3 class="heading">We've got all your Forex needs covered!</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas vitae mi et leo tristique <br>tincidunt ac nec est. Aenean volutpat mauris vitae erat ultricies varius.</p>
<p><b class="more">What's more? </b><b>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas <br>vitae mi et leo tristique tincidunt ac nec est.</b></p>
</div>
<div class="col-sm-1"></div>
<div class="col-sm-5 leftForm">
<form role="form">
<br>
<h3 style="color:rgba(159,67,66,1); margin-top:0px">Sign In</h3>
<div class="form-group col-xs-8">
E-Mail ID
<input type="email" style="border: 2px solid orange;" class="form-control" id="email">
</div>
<div class="form-group col-xs-8">
Password
<input type="password" style="border: 2px solid orange;" class="form-control" id="pwd">
</div>
<div class="col-xs-12">
<input type="submit" class="btn btn-default" style="background-color:rgba(159,67,66,1); color:white" value="LOG IN"></input><br>
<small style="color:rgba(159,67,66,1)"><u><a style="color:rgba(159,67,66,1)" href="#">Forgot Password?</a></u></small>
</div>
</form>
</div>
<div class="col-sm-5 rightForm">
<form role="form">
<br>
<h3 style="margin-top:0px">Sign Up</h3>
<div class="form-group col-xs-8">
*E-Mail ID
<input type="email" class="form-control" id="email">
</div>
<div class="form-group col-xs-8">
*Password
<input type="password" class="form-control" id="pwd">
</div>
<div class="form-group col-xs-8">
*Re-enter Password
<input type="password" class="form-control" id="pwd">
</div>
<div class=" col-xs-12">
<button type="submit" class="btn btn-default" style="background-color:rgba(102,102,102,1); color:white">SIGN UP</button>
</div>
</form>
</div>
<div class="col-sm-1"></div>
<!-- <p style="height:10px; bottom:0px; background-color:rgba(4,58,106,1)"></p> -->
</div>
<div class="col-sm-1"></div>
</div>
<div class="row">
<div class="col-sm-1">
</div>
<div class="col-sm-10">
<br>
<div style="line-height:23px"><p style="color:rgba(102,102,102,1); font-size:12px">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas vitae mi et leo tristique tincidunt ac nec est. Aenean volutpat mauris vitae erat ultricies varius. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas vitae mi et leo tristique tincidunt ac nec est. Aenean volutpat mauris vitae erat ultricies varius. Aenean volutpat mauris vitae erat ultricies varius. Lorem ipsum dolor sit amet</p></div>
<div class=""></div>
</div>
<div class="col-sm-1"></div>
</div>

请引用我想通过阴影垂直 flex 的图像。也请解释一下逻辑。 image vetically bend through shadow

最佳答案

只需使用 perspective property在盒子阴影上。

这是要追加的 CSS 示例:

.main:after{
content: '';
position:absolute;
z-index:-1;
bottom:0px;
width:50%;
left:50%;
margin-left:-47%;
height:30px;
box-shadow: 0 16px 30px -5px rgba(0, 0, 0, 1);
-webkit-transform: perspective(800px) rotateY(0deg) rotateX(45deg);
-moz-transform: perspective(800px) rotateY(0deg) rotateX(45deg);
-ms-transform: perspective(800px) rotateY(0deg) rotateX(45deg);
-o-transform: perspective(800px) rotateY(0deg) rotateX(45deg);
transform: perspective(800px) rotateY(0deg) rotateX(45deg);
margin-left:-62%;
-webkit-transform: perspective(300px) rotateY(-40deg) rotateX(50deg);
-moz-transform: perspective(300px) rotateY(-40deg) rotateX(50deg);
transform: perspective(300px) rotateY(-40deg) rotateX(50deg);
}

我认为改编它是你的工作。

关于html - 阴影使图像 flex ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38294711/

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