小部件可以翻译成以下语言:
语 | culture-slug |
---|---|
雅典 | ar |
孟加拉语 | bn |
中文 | zh |
克罗地亚语 | hr |
英语 | en |
诬告 | fr |
德国 | de |
印地语 | hi |
日本语 | hu |
话语 | id |
杭州 | it |
日语 | ja |
韩语 | ko |
波兰语 | pl |
葡萄牙语 | pt |
六号 | ru |
改期 | es |
土耳其语 | tr |
乌克兰语 | uk |
越南语 | vi |
德国 | de |
印地语 | hi |
日本语 | hu |
话语 | id |
杭州 | it |
日语 | ja |
韩语 | ko |
波兰语 | pl |
葡萄牙语 | pt |
六号 | ru |
改期 | es |
土耳其语 | tr |
乌克兰语 | uk |
越南语 | vi |
更改小部件中的语言时,根据此模板更改 iframe 的源:
https://pc-builds.com/{culture-slug}/embed/{widget-type} // For example {culture-slug} is replaced with "es" for Spanish
使用此代码嵌入我们的瓶颈计算器。
<script>
function LoadPCBuildsIFrame(id){
let frame = document.getElementById(id);
frame.style.height = (frame.contentWindow.document.body.scrollHeight + 30) + 'px';
}
</script>
<iframe loading="lazy"
src="https://pc-builds.com/en/zh/embed/bottleneck-calculator"
id="pc-builds-bottleneck-calculator"
onload="LoadPCBuildsIFrame('pc-builds-bottleneck-calculator');"
style="overflow:hidden !important;min-height:500px !important;width:100% !important;">
</iframe>
使用此代码嵌入我们的每秒帧数计算器。
<script>
function LoadPCBuildsIFrame(id){
let frame = document.getElementById(id);
frame.style.height = (frame.contentWindow.document.body.scrollHeight + 30) + 'px';
}
</script>
<iframe loading="lazy"
src="https://pc-builds.com/en/zh/embed/fps-calculator"
id="pc-builds-fps-calculator"
onload="LoadPCBuildsIFrame('pc-builds-fps-calculator');"
style="overflow:hidden !important;min-height:500px !important;width:100% !important;">
</iframe>
使用此代码嵌入我们的游戏瓶颈计算器。
<script>
function LoadPCBuildsIFrame(id){
let frame = document.getElementById(id);
frame.style.height = (frame.contentWindow.document.body.scrollHeight + 30) + 'px';
}
</script>
<iframe loading="lazy"
src="https://pc-builds.com/en/zh/embed/games-bottleneck-calculator"
id="pc-builds-games-bottleneck-calculator"
onload="LoadPCBuildsIFrame('pc-builds-games-bottleneck-calculator');"
style="overflow:hidden !important;min-height:500px !important;width:100% !important;">
</iframe>
使用此代码嵌入我们的电源单元计算器。
<script>
function LoadPCBuildsIFrame(id){
let frame = document.getElementById(id);
frame.style.height = (frame.contentWindow.document.body.scrollHeight + 30) + 'px';
}
</script>
<iframe loading="lazy"
src="https://pc-builds.com/en/zh/embed/psu-calculator"
id="pc-builds-psu-calculator"
onload="LoadPCBuildsIFrame('pc-builds-psu-calculator');"
style="overflow:hidden !important;min-height:500px !important;width:100% !important;">
</iframe>
使用此代码嵌入处理器比较视图。
<script>
function LoadPCBuildsIFrame(id){
let frame = document.getElementById(id);
frame.style.height = (frame.contentWindow.document.body.scrollHeight + 30) + 'px';
}
</script>
<iframe loading="lazy"
src="https://pc-builds.com/en/zh/embed/compare-processors"
id="pc-builds-compare-processors"
onload="LoadPCBuildsIFrame('pc-builds-compare-processors');"
style="overflow:hidden !important;min-height:500px !important;width:100% !important;">
</iframe>
使用此代码嵌入视图以进行图形卡比较。
<script>
function LoadPCBuildsIFrame(id){
let frame = document.getElementById(id);
frame.style.height = (frame.contentWindow.document.body.scrollHeight + 30) + 'px';
}
</script>
<iframe loading="lazy"
src="https://pc-builds.com/en/zh/embed/compare-graphic-cards"
id="pc-builds-compare-graphic-cards"
onload="LoadPCBuildsIFrame('pc-builds-compare-graphic-cards');"
style="overflow:hidden !important;min-height:500px !important;width:100% !important;">
</iframe>