bailing 2 minggu lalu
induk
melakukan
b381f7ab48
2 mengubah file dengan 67 tambahan dan 0 penghapusan
  1. 29 0
      5.css3/1.浏览器的内核.html
  2. 38 0
      5.css3/2.新增样式.html

+ 29 - 0
5.css3/1.浏览器的内核.html

@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>Document</title>
+    <style>
+        #box {
+            width: 200px;
+            height: 200px;
+            background: #f00;
+            border-radius: 50%;
+            /* 谷歌浏览器 */
+            -webkit-border-raduis: 50%;
+            /* 火狐浏览器 */
+            -moz-border-raduis: 50%;
+            /* IE浏览器 */
+            -ms-border-raduis: 50%;
+            /* 欧鹏浏览器 */
+            -o-border-raduis: 50%;
+        }
+    </style>
+</head>
+<body>
+    <div id="box"></div>
+    <!-- 
+
+    -->
+</body>

+ 38 - 0
5.css3/2.新增样式.html

@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>Document</title>
+    <style>
+
+#box {
+            width: 200px;
+            height: 200px;
+            border: 1px solid #000;
+            background-color: transparent;
+            /* 强制不换航 */
+            white-space: nowrap;
+            /* 溢出隐藏 */
+            overflow: hidden;
+            /* 文本变成省略号 */
+            text-overflow: ellipsis;
+            box-shadow: 10px 20px 30px #0f0;
+            text-shadow: 50px 20px 3px #f00;
+            /* opacity: 0; */
+            display: none;
+        }
+    </style>
+</head>
+<body>
+    <div id="box">
+        这是一段文字这是一段文字这是一段文字这是一段文字这是一段文字这是一段文字这是一段文字这是一段文字这是一段文字这是一段文字这是一段文字这是一段文字这是一段文字这是一段文字这是一段文字
+    </div>
+    <script>
+        var box = document.getElementById("box");
+        box.addEventListener('click',function(){
+            alert("111")
+        })
+    </script>
+</body>
+</html>