html
barbed
这个作者很懒,什么都没留下…
展开
-
三角形粒子运动
效果(这里只是截了一个静态图,实际上里面的粒子是运动状态的): <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>粒子</title> <style>原创 2020-09-20 11:20:47 · 215 阅读 · 0 评论 -
css盒子水平居中
盒子水平居中 <body> <div class="one"> <div class="two"></div> </div> </body> ①利用margin:0 auto; <style> .one { width: 200px; height: 200px; background-color: rgb(155, 199, 199)原创 2020-09-12 14:05:49 · 346 阅读 · 0 评论 -
Html块级元素与行内元素
1、块级元素 block 独占一行空间,用来布局段落,列表,导航菜单,等等。不将块级元素嵌套进行内元素中。 设置宽高有效。 2、行内元素 inline 与其他元素共享一行空间,一般嵌套在块级元素中。 设置宽高无效 <style> div { width: 100px; height: 100px; background-color: pink; } span { width: 100px;原创 2020-09-12 12:46:35 · 106 阅读 · 0 评论 -
html中的锚点实现
html中的锚点是使用超链接来实现的 超链接中的href 表示跳转的目的地,当href的值为目标元素的ID值,即可实现锚点跳转 href="#目标元素的ID值" <a href="#one">跳转到one</a> <div id="one">one</div> ...原创 2020-09-12 12:23:29 · 475 阅读 · 0 评论 -
button表单控件之可提交与不可提交
1.可提交的 如果是写在form表单内:能提交 <button>提交</button> type为submit能提交 <input type="submit" value="提交"> <button type="submit">提交按钮</button> 2.不可提交的 如果是写在form表单外,不可提交 <button>提交</button> type为button 不能提交 <button t原创 2020-09-12 12:15:09 · 745 阅读 · 0 评论