如何使用HTML和CSS创建这种div(Emboss)类型?

问题描述 投票:-1回答:1

我想像下面的Pic一样创建此div的浮雕部分。 ,请帮助我...

Click here for Image

javascript html css web web-deployment-project
1个回答
0
投票

喜欢这样?

 .emboss{

        width: 445px;
        height: 191px;
        box-shadow: inset 5px 5px 5px 0 #e9f0b7, inset -5px -5px 5px #7b6c51;
        background-image: url("box.jpg");
        background-repeat: no-repeat, repeat;
        background-position: center;
        margin-bottom: 8px;
        -moz-box-shadow: inset 5px 5px 5px 0 #e9f0b7, inset -5px -5px 5px #7b6c51;
        -webkit-box-shadow: inset 5px 5px 5px 0 #e9f0b7, inset -5px -5px 5px #7b6c51;
        box-shadow: inset 5px 5px 5px 0 #e9f0b7, inset -5px -5px 5px #7b6c51;

    }

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.