gpt4 book ai didi

CSS3 投影

转载 作者:行者123 更新时间:2023-11-28 10:55:35 27 4
gpt4 key购买 nike

我正在尝试创建一个带有阴影的对象。我相信您需要 CSS3 来执行此操作,到目前为止我已经有了类似的东西。

<!DOCTYPE html>
<html>
<head>
<style type="text/css">
div
{
width:300px;
height:100px;
background-color:yellow;

}
</style>
</head>
<body>

<div></div>

</body>
</html>

最佳答案

添加框阴影:

#thediv 
{
width:300px;
height:100px;
-moz-box-shadow: 10px 10px 5px #888; /* firefox shadows*/
-webkit-box-shadow: 10px 10px 5px #888; /* chrome / safari shadows */
box-shadow: 10px 10px 5px #888; /* general browser support */
}​

关于 this fiddle 的例子但请注意,由于这是 CSS3 和 IE6/7 是旧的,因此不适用于它们。

关于CSS3 投影,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11480130/

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