上一页 1 ··· 22 23 24 25 26
摘要: 1.src 是指向物件的来源地址,是引入。在 img、script、iframe 等元素上使用。 2.href 是超文本引用,指向需要连结的地方,是与该页面有关联的,是引用。在 link和a 等元素上使用。 使用区别: src通常用作“拿取”(引入),href 用作 "连结前往"(引用)。 1.sr 阅读全文
posted @ 2019-08-19 08:18 菜鸟小何 阅读(325) 评论(0) 推荐(0) 编辑
摘要: var a=1.55;var b=1.65;var c=a.toFixed(1);var d=b.toFixed(1);console.log(c);console.log(d); 阅读全文
posted @ 2019-08-18 21:18 菜鸟小何 阅读(784) 评论(0) 推荐(0) 编辑
摘要: 浮动 5236 与浮动法原理一样 阅读全文
posted @ 2019-08-18 16:16 菜鸟小何 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 浮动 5236 这个方法容易理解,但是记住不要给center设置宽度 阅读全文
posted @ 2019-08-18 16:10 菜鸟小何 阅读(123) 评论(0) 推荐(0) 编辑
摘要: flex 无需多言,就是方便。 阅读全文
posted @ 2019-08-18 16:00 菜鸟小何 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 双飞翼布局 451 主要思想:用container单独包裹center,container宽度设置为100%,里面的center设置宽度为100%,然后设置margin-left:left的宽度,margin-right:right的宽度。container,left,right全部左浮动。left通过设置m... 阅读全文
posted @ 2019-08-18 15:38 菜鸟小何 阅读(164) 评论(0) 推荐(0) 编辑
摘要: <!doctype html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, m 阅读全文
posted @ 2019-08-18 15:32 菜鸟小何 阅读(203) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26