css实现心情板布局效果代码
代码语言:html
所属分类:布局界面
代码描述:css实现心情板布局效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> .grid { --spacing: 1rem; display: grid; gap: var(--spacing); grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(7, 1fr); height: calc(100vh - (var(--spacing) * 2)); margin: var(--spacing); } .grid__item--a { background: olive; grid-column: 1/4; grid-row: 1/5; } .grid__item--b { background: moccasin; grid-column: 4/8; grid-row: 1/4; } .grid__item--c { background: goldenrod; grid-row: 5/8; grid-column: 1/5; } .grid__item--d { background: darkslategray; grid-row: 4/8; grid-column: 5/8; } .grid__item--e { background: indianred; grid-row:.........完整代码请登录后点击上方下载按钮下载查看
网友评论0