aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/math
diff options
context:
space:
mode:
authorIrvin <irvinfly@gmail.com>2022-02-16 02:03:27 +0800
committerIrvin <irvinfly@gmail.com>2022-02-16 02:35:54 +0800
commit012ee621791b6895e637f96e6523027951768f25 (patch)
tree29cfacc0d5092af45870dcc74f22feb8b2664fbf /files/zh-cn/web/javascript/reference/global_objects/math
parentba91b017421b001cd226135612a7bd5dfcd88904 (diff)
downloadtranslated-content-012ee621791b6895e637f96e6523027951768f25.tar.gz
translated-content-012ee621791b6895e637f96e6523027951768f25.tar.bz2
translated-content-012ee621791b6895e637f96e6523027951768f25.zip
remove inline style for zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/math')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/clz32/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/log/index.html34
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/round/index.html32
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html32
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/trunc/index.html2
9 files changed, 56 insertions, 56 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/clz32/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/clz32/index.html
index bd41c06b44..6112c6e45e 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/clz32/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/clz32/index.html
@@ -21,7 +21,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/clz32
<dd>一个数字.</dd>
</dl>
-<h2 id="描述" style="line-height: 30px;">描述</h2>
+<h2 id="描述">描述</h2>
<p>"clz32" 是 CountLeadingZeroes32 的缩写.</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html
index 3098a43b63..ff321fb664 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html
@@ -22,7 +22,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/expm1
<h2 id="Description" name="Description">描述</h2>
-<p><code>参数 <code style="font-size: 14px; line-height: inherit; margin: 0px; padding: 0px; border: 0px; color: rgb(77, 78, 83);">x</code> 会被自动类型转换成 <code style="font-size: 14px; line-height: inherit; margin: 0px; padding: 0px; border: 0px; color: rgb(77, 78, 83);">number </code>类型.</code></p>
+<p><code>参数 <code>x</code> 会被自动类型转换成 <code>number </code>类型.</code></p>
<p><code>expm1 是 "exponent minus 1" 的缩写.</code></p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/log/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/log/index.html
index 827dea60af..5be95016a8 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/log/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/log/index.html
@@ -26,7 +26,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/log
<p>如果指定的 <code>number</code> 为负数,则返回值为 <code>NaN</code>。</p>
-<p>由于 <code style="font-style: normal;">log</code> 是 <code style="font-style: normal;">Math</code> 的静态方法,所以应该像这样使用:<code style="font-style: normal;">Math.log()</code>,而不是作为你创建的 <code style="font-style: normal;">Math</code> 对象的方法。</p>
+<p>由于 <code>log</code> 是 <code>Math</code> 的静态方法,所以应该像这样使用:<code>Math.log()</code>,而不是作为你创建的 <code>Math</code> 对象的方法。</p>
<h2 id="示例">示例</h2>
@@ -49,7 +49,7 @@ Math.log(10); // 2.302585092994046</pre>
<p>如果你运行 <code>getBaseLog(10, 1000),则会返回</code><code>2.9999999999999996,非常接近实际答案:3,原因是浮点数精度问题。</code></p>
-<h2 id="规范" style="margin-bottom: 20px; line-height: 30px;">规范</h2>
+<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>
@@ -76,7 +76,7 @@ Math.log(10); // 2.302585092994046</pre>
</tbody>
</table>
-<h2 id="浏览器兼容性" style="margin-bottom: 20px; line-height: 30px;">浏览器兼容性</h2>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
<p>{{ CompatibilityTable() }}</p>
@@ -84,12 +84,12 @@ Math.log(10); // 2.302585092994046</pre>
<table class="compat-table">
<tbody>
<tr>
- <th style="line-height: 16px;">Feature</th>
- <th style="line-height: 16px;">Chrome</th>
- <th style="line-height: 16px;">Firefox (Gecko)</th>
- <th style="line-height: 16px;">Internet Explorer</th>
- <th style="line-height: 16px;">Opera</th>
- <th style="line-height: 16px;">Safari</th>
+ <th>Feature</th>
+ <th>Chrome</th>
+ <th>Firefox (Gecko)</th>
+ <th>Internet Explorer</th>
+ <th>Opera</th>
+ <th>Safari</th>
</tr>
<tr>
<td>Basic support</td>
@@ -107,13 +107,13 @@ Math.log(10); // 2.302585092994046</pre>
<table class="compat-table">
<tbody>
<tr>
- <th style="line-height: 16px;">Feature</th>
- <th style="line-height: 16px;">Android</th>
- <th style="line-height: 16px;">Chrome for Android</th>
- <th style="line-height: 16px;">Firefox Mobile (Gecko)</th>
- <th style="line-height: 16px;">IE Mobile</th>
- <th style="line-height: 16px;">Opera Mobile</th>
- <th style="line-height: 16px;">Safari Mobile</th>
+ <th>Feature</th>
+ <th>Android</th>
+ <th>Chrome for Android</th>
+ <th>Firefox Mobile (Gecko)</th>
+ <th>IE Mobile</th>
+ <th>Opera Mobile</th>
+ <th>Safari Mobile</th>
</tr>
<tr>
<td>Basic support</td>
@@ -128,7 +128,7 @@ Math.log(10); // 2.302585092994046</pre>
</table>
</div>
-<h2 id="See_also" name="See_also" style="margin-bottom: 20px; line-height: 30px;">相关链接</h2>
+<h2 id="See_also" name="See_also">相关链接</h2>
<p></p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.html
index 403d4039a2..e80f580580 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.html
@@ -28,9 +28,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/log1p
<p><code>函数 y = log(x+1) 的图形是这样的:</code></p>
-<p> <img alt="log(x+1)" src="https://mdn.mozillademos.org/files/6467/logx1.jpg" style="height: 300px; width: 400px;"></p>
+<p> <img alt="log(x+1)" src="https://mdn.mozillademos.org/files/6467/logx1.jpg"></p>
-<p><strong style="font-size: 30px; font-weight: 700; letter-spacing: -1px; line-height: 30px;">示例</strong></p>
+<p><strong>示例</strong></p>
<pre class="brush:js">Math.log1p(Math.E-1) // 1
Math.log1p(0) // 0
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html
index 9c844c1447..fcfc82fbd5 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html
@@ -23,7 +23,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/PI
<p>下面的函数使用 Math.PI 计算给定半径的圆周长:</p>
-<pre class="brush:js language-js" style="padding: 1em 0px 1em 30px; font-size: 14px; white-space: normal; color: rgb(77, 78, 83);"><code class="language-js" style="direction: ltr; white-space: pre;">function calculateCircumference (radius) {
+<pre class="brush:js language-js"><code class="language-js">function calculateCircumference (radius) {
return 2 * Math.PI * radius;
}
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html
index 3ede0647ac..9138f6d635 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html
@@ -5,7 +5,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/pow
---
<div>{{JSRef}}</div>
-<p><code><strong>Math.pow()</strong></code> 函数返回基数(<code>base</code>)的指数(<code>exponent</code>)次幂,即 <code style="font-size: 14px;">base<sup>exponent</sup></code>。</p>
+<p><code><strong>Math.pow()</strong></code> 函数返回基数(<code>base</code>)的指数(<code>exponent</code>)次幂,即 <code>base<sup>exponent</sup></code>。</p>
<p>{{EmbedInteractiveExample("pages/js/math-pow.html")}}</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/round/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/round/index.html
index 6b9b7956ba..409b9dbaa1 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/round/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/round/index.html
@@ -40,7 +40,7 @@ x = Math.round(-20.5); //-20
x = Math.round(-20.51); //-21
</pre>
-<h3 id="Example:_Decimal_rounding" name="Example:_Decimal_rounding" style="line-height: 24px;">小数舍入</h3>
+<h3 id="Example:_Decimal_rounding" name="Example:_Decimal_rounding">小数舍入</h3>
<pre class="brush: js">// 闭包
(function(){
@@ -126,7 +126,7 @@ Math.ceil10(-59, 1); // -50
round(1.005, 2); //1.01
</pre>
-<h2 id="规范" style="margin-bottom: 20px; line-height: 30px;">规范</h2>
+<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>
@@ -153,7 +153,7 @@ round(1.005, 2); //1.01
</tbody>
</table>
-<h2 id="浏览器兼容性" style="margin-bottom: 20px; line-height: 30px;">浏览器兼容性</h2>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
<div>{{CompatibilityTable}}</div>
@@ -161,12 +161,12 @@ round(1.005, 2); //1.01
<table class="compat-table">
<tbody>
<tr>
- <th style="line-height: 16px;">Feature</th>
- <th style="line-height: 16px;">Chrome</th>
- <th style="line-height: 16px;">Firefox (Gecko)</th>
- <th style="line-height: 16px;">Internet Explorer</th>
- <th style="line-height: 16px;">Opera</th>
- <th style="line-height: 16px;">Safari (WebKit)</th>
+ <th>Feature</th>
+ <th>Chrome</th>
+ <th>Firefox (Gecko)</th>
+ <th>Internet Explorer</th>
+ <th>Opera</th>
+ <th>Safari (WebKit)</th>
</tr>
<tr>
<td>Basic support</td>
@@ -184,12 +184,12 @@ round(1.005, 2); //1.01
<table class="compat-table">
<tbody>
<tr>
- <th style="line-height: 16px;">Feature</th>
- <th style="line-height: 16px;">Android</th>
- <th style="line-height: 16px;">Firefox Mobile (Gecko)</th>
- <th style="line-height: 16px;">IE Phone</th>
- <th style="line-height: 16px;">Opera Mobile</th>
- <th style="line-height: 16px;">Safari Mobile</th>
+ <th>Feature</th>
+ <th>Android</th>
+ <th>Firefox Mobile (Gecko)</th>
+ <th>IE Phone</th>
+ <th>Opera Mobile</th>
+ <th>Safari Mobile</th>
</tr>
<tr>
<td>Basic support</td>
@@ -203,7 +203,7 @@ round(1.005, 2); //1.01
</table>
</div>
-<h2 id="See_also" name="See_also" style="margin-bottom: 20px; line-height: 30px;">相关链接</h2>
+<h2 id="See_also" name="See_also">相关链接</h2>
<p></p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html
index 5171a2f9df..8eb81b8572 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html
@@ -16,7 +16,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/SQRT2
}
getRoot2(); // 1.4142135623730951</pre>
-<h2 id="规范" style="margin-bottom: 20px; line-height: 30px;">规范</h2>
+<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>
<tr>
@@ -41,18 +41,18 @@ getRoot2(); // 1.4142135623730951</pre>
</tr>
</tbody>
</table>
-<h2 id="浏览器兼容性" style="margin-bottom: 20px; line-height: 30px;">浏览器兼容性</h2>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
<p>{{ CompatibilityTable() }}</p>
<div>
<table class="compat-table">
<tbody>
<tr>
- <th style="line-height: 16px;">Feature</th>
- <th style="line-height: 16px;">Chrome</th>
- <th style="line-height: 16px;">Firefox (Gecko)</th>
- <th style="line-height: 16px;">Internet Explorer</th>
- <th style="line-height: 16px;">Opera</th>
- <th style="line-height: 16px;">Safari</th>
+ <th>Feature</th>
+ <th>Chrome</th>
+ <th>Firefox (Gecko)</th>
+ <th>Internet Explorer</th>
+ <th>Opera</th>
+ <th>Safari</th>
</tr>
<tr>
<td>Basic support</td>
@@ -69,13 +69,13 @@ getRoot2(); // 1.4142135623730951</pre>
<table class="compat-table">
<tbody>
<tr>
- <th style="line-height: 16px;">Feature</th>
- <th style="line-height: 16px;">Android</th>
- <th style="line-height: 16px;">Chrome for Android</th>
- <th style="line-height: 16px;">Firefox Mobile (Gecko)</th>
- <th style="line-height: 16px;">IE Mobile</th>
- <th style="line-height: 16px;">Opera Mobile</th>
- <th style="line-height: 16px;">Safari Mobile</th>
+ <th>Feature</th>
+ <th>Android</th>
+ <th>Chrome for Android</th>
+ <th>Firefox Mobile (Gecko)</th>
+ <th>IE Mobile</th>
+ <th>Opera Mobile</th>
+ <th>Safari Mobile</th>
</tr>
<tr>
<td>Basic support</td>
@@ -89,7 +89,7 @@ getRoot2(); // 1.4142135623730951</pre>
</tbody>
</table>
</div>
-<h2 id="See_also" name="See_also" style="margin-bottom: 20px; line-height: 30px;">相关链接</h2>
+<h2 id="See_also" name="See_also">相关链接</h2>
<ul>
<li>The {{jsxref("Global_Objects/Math", "Math")}} object it belongs to.</li>
</ul>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/trunc/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/trunc/index.html
index f260b85c58..485a96e75d 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/trunc/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/trunc/index.html
@@ -105,7 +105,7 @@ Math.trunc() // NaN</pre>
<p>{{Compat("javascript.builtins.Math.trunc")}}</p>
-<p><strong style="color: #4d4e53; font-size: 2.14286rem; font-weight: 700; letter-spacing: -1px;">相关链接</strong></p>
+<p><strong>相关链接</strong></p>
<ul>
<li>{{jsxref("Math.abs()")}}</li>