摘要:
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>Title</title> <style> img{ width: 320px; //高度按比例自适应 } </style> </head> <body> 阅读全文
posted @ 2019-12-17 15:20
杨小越
阅读(906)
评论(0)
推荐(0)
摘要:
console.log(null==undefined); // true console.log(null undefined); // false console.log(null+10); // 10 console.log(undefined+10); // NaN 阅读全文
posted @ 2019-12-17 14:35
杨小越
阅读(137)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> </head> <body> <script> console.log(parseInt(19.11)); console.log(parse 阅读全文
posted @ 2019-12-17 14:29
杨小越
阅读(478)
评论(0)
推荐(0)
摘要:
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style> *{ margin: 0; padding: 0; } section{ width: 100px; heig 阅读全文
posted @ 2019-12-17 14:06
杨小越
阅读(259)
评论(0)
推荐(0)
摘要:
display:none; /*不占空间*/ visibility: hidden; /*占空间*/ visibility: visible; /*显示的意思*/ 阅读全文
posted @ 2019-12-17 13:58
杨小越
阅读(121)
评论(0)
推荐(0)
摘要:
document.write("<h1>今天下雪了</h1>"); //字符串中可以加html的标签 阅读全文
posted @ 2019-12-17 13:40
杨小越
阅读(179)
评论(0)
推荐(0)
摘要:
console.log("今天是");console.warn("星期五");console.error("天气很好"); console 使用代码 作用 console.log() 控制台输出 普通输出语句 console.warn() 控制台警示 console.error(); 错误提示 阅读全文
posted @ 2019-12-17 13:36
杨小越
阅读(2074)
评论(0)
推荐(0)

浙公网安备 33010602011771号