2022年3月26日

摘要: 1 使用css属性将一个div变成圆形 效果 <!DOCTYPE html> <html> <head> <title>two</title> <style> .test{ width: 100px; height: 100px; border-radius: 50%; /* 下面属性不重要 */ 阅读全文
posted @ 2022-03-26 18:06 GameCat 阅读(69) 评论(0) 推荐(0) 编辑
摘要: width 一般取 device-width height 一般不设置 initial-scale 初始缩放值 小数 一般为1 mininum-scale 最小缩放值 maxinum-scale 最大缩放值 user-scalable 可取值 yes | no 例子 <meta name="view 阅读全文
posted @ 2022-03-26 15:51 GameCat 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 不同源页面 这里造成不同源的方式是: 不同端口 第一个页面: 发送页面 send.html <!DOCTYPE html> <html> <head> <title>send</title> </head> <body> <iframe id="testTwo" src="http://127.0. 阅读全文
posted @ 2022-03-26 15:44 GameCat 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 一个label和一个input相关联, 当点击lable时, 相当于点击了input, 故而获取输入焦点 label标签设置for属性, 值为test input标签设置id属性 值为test 一个input可以有多个lable对应 当lable标签包含一个input, 则不需要设置id和for属性 阅读全文
posted @ 2022-03-26 14:23 GameCat 阅读(58) 评论(0) 推荐(0) 编辑
摘要: a标签target属性可以设置如下取值, 作用分别对应如下 _self 默认值, 在当前窗口或者框架中打开连接 _blank 在新窗口或新的标签页中打开链接 _parent 在父级的框架中打开, 如果自身是顶层, 与_self相同 _top 在顶层的框架中打开; 当不在框架中使用则清除所有内容在当前 阅读全文
posted @ 2022-03-26 13:51 GameCat 阅读(905) 评论(0) 推荐(0) 编辑
摘要: id 为元素设置id class 为元素设置类 style 为元素设置行内样式 data-* 为元素自定义data数据 title 鼠标悬停元素上面,给出文字提示 hidden 元素是否隐藏 布尔值 使用display: none 隐藏 contenteditable 元素内容是否可编辑 布尔值 阅读全文
posted @ 2022-03-26 13:24 GameCat 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 行内标签 a b span strong i em button input label br textarea select 块级标签 div p h1-h6 ol ul li table tbody td tr thead dl dt dd h5新增标签 header footer main n 阅读全文
posted @ 2022-03-26 13:06 GameCat 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 1 link是html标签, import是css语法 2 link除了引入css样式文件, 还可以通过设置type和stylesheet属性来引入其他文档, import只能引入css 3 html加载时link标签同步加载, import则是html加载完毕后再加载css 4 IE5以下支持li 阅读全文
posted @ 2022-03-26 12:48 GameCat 阅读(61) 评论(0) 推荐(0) 编辑

导航