css布局实现桌子碗筷子效果代码

代码语言:html

所属分类:布局界面

代码描述:css布局实现桌子碗筷子效果代码

代码标签: 桌子 筷子 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">

  
  
  
<style>
:root {
  --sushi-table-background: #d9801c;
  --sushi-table-texture: url("//repo.bfw.wiki/bfwrepo/image/605023423d101.png");
}

* {
  box-sizing: border-box;
}

body {
  background-color: salmon;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.sushi-table {
  width: 600px;
  height: 600px;
  background-color: var(--sushi-table-background);
  background-image: var(--sushi-table-texture);
  border-radius: 50%;
  border: 10px solid gold;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(9, 1fr);
}

.sushi-one {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  justify-self: center;
  align-self: center;
  background-color: #ffffff;
  border: 5px solid #4d5125;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' .........完整代码请登录后点击上方下载按钮下载查看

网友评论0