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