diff --git a/docs/css.html b/docs/css.html index d19b6521..c8fca741 100644 --- a/docs/css.html +++ b/docs/css.html @@ -42,7 +42,7 @@
这是一份关于 CSS 优点的快速参考备忘单,列出了选择器语法、属性、单位和其他有用的信息
CSS 功能丰富,不仅仅是布局页面
@@ -1387,6 +1387,23 @@ font: 1rem/1.6 sans-serif; } +.container {
+ height: 250px;
+ overflow-x: scroll;
+ display: flex;
+ scroll-snap-type: x mandatory;
+ column-gap: 10px;
+}
+.child {
+ flex: 0 0 66%;
+ width: 250px;
+ background-color: #663399;
+ scroll-snap-align: center;
+}
+
+可用于 轮播图
效果,效果预览
div {
-webkit-user-modify:
diff --git a/docs/golang.html b/docs/golang.html
index 77610f61..f585b1f5 100644
--- a/docs/golang.html
+++ b/docs/golang.html
@@ -94,7 +94,7 @@
s1 := "Hello" + "World"
s2 := `A "raw" string literal
can include line breaks.`
-// 输出:11
+// 输出:10
fmt.Println(len(s1))
// 输出:Hello
fmt.Println(string(s1[0:5]))