打开/关闭搜索
搜索
打开/关闭菜单
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页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
/* 电脑端样式 */ .responsive-two-columns .left-col { width: 320px; vertical-align: top; } .responsive-two-columns .right-col { vertical-align: top; padding-left: 20px; } /* 新增:响应式图片卡片样式 */ .gallery-card { position: relative; width: calc(50% - 5px); /* 一行两个,减去gap的一半 */ max-width: 500px; text-align: center; } .gallery-card-small { position: relative; width: calc(50% - 5px); max-width: 150px; text-align: center; } .gallery-card img, .gallery-card-small img { width: 100%; height: auto; } .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; } .flex-gallery { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; align-items: flex-start; } /* 手机端样式 */ @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; } .responsive-two-columns img { max-width: 100%; height: auto; } /* 手机端保持一行两个 */ .gallery-card, .gallery-card-small { width: calc(50% - 5px); max-width: none; } .flex-gallery { gap: 10px; } } /* 超小屏幕(宽度小于480px)时改为一行一个 */ @media screen and (max-width: 480px) { .gallery-card, .gallery-card-small { width: 100%; } } /* 电脑端背景容器(基准样式) */ .zhajiao-wiki-notice { background-image: url("文件:石牌.png"); background-size: cover; background-position: center; padding: 10px; text-align: center; border-radius: 8px; } /* 内层遮罩保证文字清晰 */ .zhajiao-wiki-notice .inner { background-color: rgba(0, 0, 0, 0.5); padding: 5px; border-radius: 8px; } /* 手机端覆盖(无需 !important,利用选择器优先级自然覆盖) */ @media (max-width: 768px) { .zhajiao-wiki-notice { background-image: url("文件:石牌-短.png"); } }
返回
MediaWiki:Common.css
。
查看“︁MediaWiki:Common.css”︁的源代码
MediaWiki界面页面