◆少前百科是非盈利性、非官方的少女前线维基百科。 ◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科。 ◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科 ◆To foreigners,You can use twitter to contact us. |
“Widget:全称”的版本间的差异
Mikumikuer(讨论 | 贡献) (创建页面,内容为“<includeonly><style> h1#firstHeading::after { content:"<!--{$fullname}-->"; float:right; color:#eaeaea; font-weight:bold; } </style></includeonly>”) |
(将全称的DIV插入在H1最后) |
||
(未显示2个用户的13个中间版本) | |||
第1行: | 第1行: | ||
<includeonly><style> | <includeonly><style> | ||
− | + | div.fnameheader{ | |
− | + | float: right; | |
− | + | font-size: 1em; | |
− | + | font-family: sans-serif; | |
− | + | white-space: nowrap; | |
− | + | word-break: keep-all; | |
− | </ | + | } |
+ | </style> | ||
+ | <script type="text/javascript"> | ||
+ | RLQ.push(function(){ | ||
+ | var a=document.querySelectorAll("#section_0"); | ||
+ | if (!a.length){$("\<div class\=\'fnameheader\'\><!--{$fullname|regex_replace:"/\"/":"\\\""|regex_replace:"/\n/":"\\n"|regex_replace:"/\//":"\\\/"}-->\<\/div\>").appendTo("#firstHeading");} | ||
+ | else {$("\<div class\=\'fnameheader\'\ style\=\'font-size: .5em;float: none;font-weight: normal;font-style: italic;\'><!--{$fullname|regex_replace:"/\"/":"\\\""|regex_replace:"/\n/":"\\n"|regex_replace:"/\//":"\\\/"}-->\<\/div\>").prependTo("#section_0");} | ||
+ | }); | ||
+ | </script></includeonly> |