上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 40 下一页
摘要: 为表格添加边框 <!DOCTYPE html> <html> <head> <style> table, th, td { border: 1px solid black; } </style> </head> <body> <h1>为表格添加边框:</h1> <table> <tr> <th>Fi 阅读全文
posted @ 2022-02-06 23:18 kuaiquxie 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 使用单独的外边距属性 <!DOCTYPE html> <html> <head> <style> div { border: 1px solid black; margin-top: 100px; margin-bottom: 100px; margin-right: 150px; margin-l 阅读全文
posted @ 2022-02-06 23:01 kuaiquxie 阅读(62) 评论(0) 推荐(0) 编辑
摘要: js数组方法 <!DOCTYPE html> <html> <body> <h2>pop()</h2> <p>pop() 方法从数组中删除最后一个元素。</p> <p id="demo1"></p> <p id="demo2"></p> <p id="demo3"></p> <p id="demo4 阅读全文
posted @ 2022-02-05 21:59 kuaiquxie 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 字符串插值 <!DOCTYPE html> <html> <body> <h2>JavaScript 模板字面量</h2> <p>模板字面量允许字符串中的变量:</p> <p id="demo"></p> <p>Internet Explorer 不支持模板字面量。</p> <script> var 阅读全文
posted @ 2022-02-05 21:14 kuaiquxie 阅读(45) 评论(0) 推荐(0) 编辑
摘要: css背景(背景属性在一条声明之中) <!DOCTYPE html> <html> <head> <style> body { background: #ffffff url("/i/photo/tree.png") no-repeat right top; margin-right: 200px; 阅读全文
posted @ 2022-02-05 20:23 kuaiquxie 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 元素选择器 <!DOCTYPE html> <html> <head> <style> p { text-align: center; color: red; } </style> </head> <body> <p>每个段落都会受到样式的影响。</p> <p id="para1">我也是!</p> 阅读全文
posted @ 2022-02-05 00:39 kuaiquxie 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 事件 阅读全文
posted @ 2022-02-05 00:36 kuaiquxie 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 设置背景颜色 <!DOCTYPE html> <html> <body> <h1 style="background-color:DodgerBlue;">Hello World</h1> <p style="background-color:Tomato;"> guangdong </p> </b 阅读全文
posted @ 2022-02-03 21:52 kuaiquxie 阅读(9) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.co 阅读全文
posted @ 2022-02-02 23:57 kuaiquxie 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 下面这是一个实例 var x = myFunction(7, 8); // 调用函数,返回值被赋值给 x function myFunction(a, b) { return a * b; // 函数返回 a 和 b 的乘积 } 阅读全文
posted @ 2022-02-02 23:56 kuaiquxie 阅读(19) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 40 下一页