uikit自适应动态网格布局效果代码
代码语言:html
所属分类:布局界面
代码描述:uikit自适应动态网格布局效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/uikit.2.23.css"> <style> /* * Generate different grid panel colors */ .tm-grid-colors > * > * { padding: 20px; } .tm-grid-colors > :nth-child(8n-7) > * { background: rgba(130, 200, 240, 0.1); } .tm-grid-colors > :nth-child(8n-6) > * { background: rgba(130, 200, 240, 0.15); } .tm-grid-colors > :nth-child(8n-5) > * { background: rgba(130, 200, 240, 0.2); } .tm-grid-colors > :nth-child(8n-4) > * { background: rgba(130, 200, 240, 0.25); } .tm-grid-colors > :nth-child(8n-3) > * { background: rgba(130, 200, 240, 0.3); } .tm-grid-colors > :nth-child(8n-2) > * { background: rgba(130, 200, 240, 0.35); } .tm-grid-colors > :nth-child(8n-1) > * { background: rgba(130, 200, 240, 0.4); } .tm-grid-colors > :nth-child(8n) > * { background: rgba(130, 200, 240, 0.45); } /* * Generate different grid panel heights */ .tm-grid-heights > :nth-child(8n-7) > * { height: 80px; } .tm-grid-heights > :nth-child(8n-6) > * { height: 100px; } .tm-grid-heights > :nth-child(8n-5) > * { height: 160px; } .tm-grid-heights > :nth-child(8n-4) > * { height: 120px; } .tm-grid-heights > :nth-child(8n-3) > * { height: 180px; } .tm-grid-heights > :nth-.........完整代码请登录后点击上方下载按钮下载查看
网友评论0