Html 如何使Div框看起来是3D的

Html 如何使Div框看起来是3D的,html,css,Html,Css,这就是我到目前为止所做的: <style type="text/css"> .signupsubmit { line-height: 32px; position: absolute; left: 36px; color: white; top: 527px; font-family: arial; font-size: 17px; font-weight

这就是我到目前为止所做的:

 <style type="text/css">
.signupsubmit {
        line-height: 32px;
        position: absolute;
        left: 36px;
        color: white;
        top: 527px;
        font-family: arial;
        font-size: 17px;
        font-weight: 600;
        width: 137px;
        height: 30px;
        border-color: #00297A;
        border-radius: 4px;
        border: 1px solid black;
        border-style: solid;
        background-color: #FFB630;
        text-indent: 30px;
        }
<style>
<div class = "signupsubmit">Continue</div>

.signupsubmit{
线高:32px;
位置:绝对位置;
左:36px;
颜色:白色;
顶部:527px;
字体系列:arial;
字号:17px;
字号:600;
宽度:137px;
高度:30px;
边框颜色:#00297A;
边界半径:4px;
边框:1px纯黑;
边框样式:实心;
背景色:#FFB630;
文本缩进:30px;
}
继续
有人能举例说明如何使“继续”按钮看起来像3D而不是2D吗?

只需添加一个框阴影。可能是最简单的方式:

box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.24);
编辑:根据您的评论,听起来您在寻找“梯度”。见更新的小提琴。您还可以使用在线渐变生成器来帮助实现这一点。这里有一个可以修改“开始”和“结束”背景色的选项。或者,您可以单击“showcase”并找到一个按钮,该按钮靠近您要查找的内容:

只需添加一个框阴影。可能是最简单的方式:

box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.24);
编辑:根据您的评论,听起来您在寻找“梯度”。见更新的小提琴。您还可以使用在线渐变生成器来帮助实现这一点。这里有一个可以修改“开始”和“结束”背景色的选项。或者,您可以单击“showcase”并找到一个按钮,该按钮靠近您要查找的内容:


谢谢大家的帮助。我终于得到了答案,我将把它写下来。感谢Niloct为您提供使用inspect element的指南

<div class = "signupsubmit">Continue<div>
<style type = "text/css">
    .signupsubmit {
        webkit-appearance: none;
        align-items: flex-start;
        background-attachment: scroll;
        background-clip: border-box;
        background-color: #FFA500;
        background-origin: padding-box;
        background-size: auto;
        border-bottom-color: black;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        border-bottom-style: solid;
        border-bottom-width: 1px;
        border-image-outset: 0px;
        border-image-repeat: stretch;
        border-image-slice: 100%;
        border-image-source: none;
        border-image-width: 1;
        border-left-color: black;
        border-left-style: solid;
        border-left-width: 1px;
        border-right-color: black;
        border-right-style: solid;
        border-right-width: 1px;
        border-top-color: black;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        border-top-style: solid;
        border-top-width: 1px;
        box-shadow: #80B2FF 0px 1px 1px 0px inset;
        box-sizing: border-box;
        color: rgb(255, 255, 255);
        cursor: pointer;
        direction: ltr;
        display: inline-block;
        font-family: 'Arial', 'Helvetica Neue', 'Segoe UI', 'Malgun Gothic', Meiryo, 'Microsoft JhengHei', helvetica, arial, sans-serif;
        font-size: 12px;
        font-stretch: normal;
        font-style: normal;
        font-variant: normal;
        font-weight: bold;
        height: 31px;
        letter-spacing: 1px;
        line-height: 15.12px;
        margin-bottom: 10px;
        margin-left: 0px;
        margin-right: 0px;
        margin-top: 10px;
        min-width: 194px;
        padding-bottom: 7px;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 7px;
        position: relative;
        text-align: center;
        text-indent: 0px;
        text-rendering: optimizeLegibility;
        text-shadow: rgba(0, 0, 0, 0.498039) 0px 1px 2px;
        text-transform: none;
        width: 194px;
        word-spacing: 0px;
        writing-mode: lr-tb;
        -webkit-writing-mode: horizontal-tb;
        zoom: 1;
        left: 37px;
        top: 515px;
        position: absolute;
        }
</style>
继续
.signupsubmit{
webkit外观:无;
调整项目:灵活启动;
背景附件:滚动条;
背景剪辑:边框框;
背景色:#FFA500;
背景来源:填充框;
背景尺寸:自动;
边框底色:黑色;
边框左下半径:5px;
边框右下半径:5px;
边框底部样式:实心;
边框底宽:1px;
边界图像开始:0px;
边界图像重复:拉伸;
边界图像切片:100%;
边界图像源:无;
边框图像宽度:1;
左边框颜色:黑色;
左边框样式:实心;
左边框宽度:1px;
右边框颜色:黑色;
右边框样式:实心;
右边框宽度:1px;
边框顶部颜色:黑色;
边框左上半径:5px;
边框右上角半径:5px;
边框顶部样式:实心;
边框顶部宽度:1px;
盒影:#80B2FF 0px 1px 1px 0px插图;
框大小:边框框;
颜色:rgb(255、255、255);
光标:指针;
方向:ltr;
显示:内联块;
字体系列:“Arial”,“Helvetica Neue”,“Segoe UI”,“Malgun哥特式”,Meiryo,“Microsoft JhengHei”,Helvetica,Arial,无衬线;
字体大小:12px;
字体拉伸:正常;
字体风格:普通;
字体变体:正常;
字体大小:粗体;
高度:31px;
字母间距:1px;
线高:15.12px;
边缘底部:10px;
左边距:0px;
右边距:0px;
边缘顶部:10px;
最小宽度:194px;
垫底:7px;
左侧填充:20px;
右边填充:20px;
填充顶部:7px;
位置:相对位置;
文本对齐:居中;
文本缩进:0px;
文本呈现:优化易读性;
文本阴影:rgba(0,0,0,0.498039)0px 1px 2px;
文本转换:无;
宽度:194px;
字间距:0px;
写入方式:lr-tb;
-webkit写作模式:水平tb;
缩放:1;
左:37像素;
顶部:515px;
位置:绝对位置;
}

谢谢大家的帮助。我终于得到了答案,我将把它写下来。感谢Niloct为您提供使用inspect element的指南

<div class = "signupsubmit">Continue<div>
<style type = "text/css">
    .signupsubmit {
        webkit-appearance: none;
        align-items: flex-start;
        background-attachment: scroll;
        background-clip: border-box;
        background-color: #FFA500;
        background-origin: padding-box;
        background-size: auto;
        border-bottom-color: black;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        border-bottom-style: solid;
        border-bottom-width: 1px;
        border-image-outset: 0px;
        border-image-repeat: stretch;
        border-image-slice: 100%;
        border-image-source: none;
        border-image-width: 1;
        border-left-color: black;
        border-left-style: solid;
        border-left-width: 1px;
        border-right-color: black;
        border-right-style: solid;
        border-right-width: 1px;
        border-top-color: black;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        border-top-style: solid;
        border-top-width: 1px;
        box-shadow: #80B2FF 0px 1px 1px 0px inset;
        box-sizing: border-box;
        color: rgb(255, 255, 255);
        cursor: pointer;
        direction: ltr;
        display: inline-block;
        font-family: 'Arial', 'Helvetica Neue', 'Segoe UI', 'Malgun Gothic', Meiryo, 'Microsoft JhengHei', helvetica, arial, sans-serif;
        font-size: 12px;
        font-stretch: normal;
        font-style: normal;
        font-variant: normal;
        font-weight: bold;
        height: 31px;
        letter-spacing: 1px;
        line-height: 15.12px;
        margin-bottom: 10px;
        margin-left: 0px;
        margin-right: 0px;
        margin-top: 10px;
        min-width: 194px;
        padding-bottom: 7px;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 7px;
        position: relative;
        text-align: center;
        text-indent: 0px;
        text-rendering: optimizeLegibility;
        text-shadow: rgba(0, 0, 0, 0.498039) 0px 1px 2px;
        text-transform: none;
        width: 194px;
        word-spacing: 0px;
        writing-mode: lr-tb;
        -webkit-writing-mode: horizontal-tb;
        zoom: 1;
        left: 37px;
        top: 515px;
        position: absolute;
        }
</style>
继续
.signupsubmit{
webkit外观:无;
调整项目:灵活启动;
背景附件:滚动条;
背景剪辑:边框框;
背景色:#FFA500;
背景来源:填充框;
背景尺寸:自动;
边框底色:黑色;
边框左下半径:5px;
边框右下半径:5px;
边框底部样式:实心;
边框底宽:1px;
边界图像开始:0px;
边界图像重复:拉伸;
边界图像切片:100%;
边界图像源:无;
边框图像宽度:1;
左边框颜色:黑色;
左边框样式:实心;
左边框宽度:1px;
右边框颜色:黑色;
右边框样式:实心;
右边框宽度:1px;
边框顶部颜色:黑色;
边框左上半径:5px;
边框右上角半径:5px;
边框顶部样式:实心;
边框顶部宽度:1px;
盒影:#80B2FF 0px 1px 1px 0px插图;
框大小:边框框;
颜色:rgb(255、255、255);
光标:指针;
方向:ltr;
显示:内联块;
字体系列:“Arial”,“Helvetica Neue”,“Segoe UI”,“Malgun哥特式”,Meiryo,“Microsoft JhengHei”,Helvetica,Arial,无衬线;
字体大小:12px;
字体拉伸:正常;
字体风格:普通;
字体变体:正常;
字体大小:粗体;
高度:31px;
字母间距:1px;
线高:15.12px;
边缘底部:10px;
左边距:0px;
右边距:0px;
边缘顶部:10px;
最小宽度:194px;
垫底:7px;
左侧填充:20px;
右边填充:20px;
填充顶部:7px;
位置:相对位置;
文本对齐:居中;
文本缩进:0px;
文本呈现:优化易读性;
文本阴影: