From d490e42ffe823173477b841ec397105bd06cb336 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Thu, 17 Jun 2021 13:35:36 -0400 Subject: rid of $samples iframes --- files/zh-cn/web/css/shape-margin/index.html | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'files/zh-cn/web/css/shape-margin') diff --git a/files/zh-cn/web/css/shape-margin/index.html b/files/zh-cn/web/css/shape-margin/index.html index 1590690856..afc4a907df 100644 --- a/files/zh-cn/web/css/shape-margin/index.html +++ b/files/zh-cn/web/css/shape-margin/index.html @@ -49,7 +49,9 @@ shape-margin: unset;

范例

-

HTML

+

Adding a margin to a polygon

+ +

HTML

<section>
 <div class="shape"></div>
@@ -59,9 +61,9 @@ uncertain to every one except some individual who attempts to set them
 forth; but before the world was fashioned the square on the hypotenuse
 was equal to the sum of the squares on the other two sides of a right
 triangle, and it will be so after this world is dead; and the inhabitant
-of Mars, if he exists, probably knows its truth as we know it.</section>
+of Mars, if one exists, probably knows its truth as we know it.</section> -

CSS

+

CSS

section {
   max-width: 400px;
@@ -77,10 +79,9 @@ of Mars, if he exists, probably knows its truth as we know it.</section>
 
-

Result

- -

+

Result

+

{{EmbedLiveSample("Adding_a_margin_to_a_polygon", 500, 250)}}

规范

@@ -104,11 +105,7 @@ of Mars, if he exists, probably knows its truth as we know it.</section>浏览器兼容性 -
- - -

{{Compat("css.properties.shape-margin")}}

-
+

{{Compat}}

参见

-- cgit v1.2.3-54-g00ecf