打开/关闭搜索
搜索
打开/关闭菜单
40
311
27
1024
植物大战僵尸杂交版Wiki
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
上传文件
打开/关闭外观设置菜单
notifications
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
本Wiki为杂交版民间Wiki,不对杂交版官方产生影响
Wiki制作组招募群号:633922116
查看“︁MediaWiki:Common.css”︁的源代码
MediaWiki界面页面
查看
阅读
查看源代码
查看历史
associated-pages
系统消息
讨论
更多操作
←
MediaWiki:Common.css
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。 如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
/* 电脑端样式 - 默认一行3个(大屏幕) */ .flex-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: flex-start; } /* 所有卡片通用样式 */ .gallery-card, .gallery-card-small { position: relative; width: 100%; text-align: center; } /* 图片自动缩放 */ .gallery-card img, .gallery-card-small img { width: 100%; height: auto; max-width: 100%; } /* 文字覆盖层 */ .image-overlay { position: absolute; bottom: 30px; left: 10px; text-align: left; background: rgba(0,0,0,0.5); color: white; padding: 5px; border-radius: 4px; font-size: 14px; } /* 中等屏幕(1200px以下)改为一行2个 */ @media screen and (max-width: 1200px) { .flex-gallery { grid-template-columns: repeat(2, 1fr); } } /* 平板端(900px以下)保持一行2个 */ @media screen and (max-width: 900px) { .flex-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } } /* 手机端样式(768px以下) */ @media screen and (max-width: 768px) { .responsive-two-columns, .responsive-two-columns tbody, .responsive-two-columns tr, .responsive-two-columns td { display: block; width: 100%; } .responsive-two-columns .right-col { padding-left: 0; margin-top: 20px; } .flex-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } .image-overlay { bottom: 15px; left: 5px; font-size: 12px; padding: 3px 5px; } } /* 超小屏幕(500px以下)改为一行1个 */ @media screen and (max-width: 500px) { .flex-gallery { grid-template-columns: 1fr; gap: 10px; } }
返回
MediaWiki:Common.css
。
查看“︁MediaWiki:Common.css”︁的源代码
MediaWiki界面页面