After following, you can keep track of his dynamic information in a timely manner
Courses in the relevant section:HTML form
label啥意思 input知道是定义类型。 <form method="post" action=“save.php”> </form>
2018-06-230个赞
Courses in the relevant section:HTML text and password input boxes
制作一个 用户名密码输入表单 <form> 姓名 <input type="text" name="1" value="Name" /> 密码 <input type="password" name="2" value=Passwd" />
制作一个 用户名密码输入表单 <form method="post" action="save.php"> 姓名 <input type="text" name="1" value="Name" /></br> 密码 <input type="password" name="2" value="Passwd" /> </form>
只是无法做到虚拟化默认文本
2018-06-230个赞
Courses in the relevant section:HTML text field
文本域 可在表单内使用。 之前那个算是文本输入框,直接<input /> 即可 现在 <textarea rows="" cols="">默认内容 </textarea> <input /> 默认内容需要用value说明
2018-06-230个赞
Courses in the relevant section:How to use HTML radio buttons and check boxes
单选复选框 还是用<input />元素 属性 <input type="radio/checkbox" value="值" name="名称" checked="checked"/> radio单选 CheckBox复选 value所提交的值 name,同一组内的框框命名(为了和其他组区分) checked,默认选中,不选不写就行了。 另外不知道为什么用label
2018-06-230个赞
Courses in the relevant section:HTML drop-down list box
下拉列表框 又一个控件 <select> <option value='看书'>看书</option> <option value='旅游' selected="selected">旅游</option> <option value='运动'>运动</option> <option value='购物'>购物</option> </select> option value="服务器提交值”>显示的选项</option>
2018-06-230个赞
Courses in the relevant section:HTML drop-down list box multiple selection
下拉列表框多选 仅在selected标签中加入multiple或者multiple=multiple或者multiple="multiple"(语法真的不规范) 同样,默认选择,在<option>标签中加入selected/selected=selected/selected="selected"即可 可以默认多选
2018-06-230个赞
Courses in the relevant section:HTML form submit button
提交按钮 又是input type="submit" value=显示的文本 input小结: text/password/submit:value均是默认值、显示值 radio,checkbox,均是提交值 select 中,value也是提交值 textarea中,没有value属性。
2018-06-230个赞
Courses in the relevant section:HTML reset button
貌似重置按钮是对页面上所有表单都重置,那么,怎样针对特定对象重置呢? type="reset"
type ,value,name
2018-06-230个赞
Courses in the relevant section:label tag in form
1.label用于增强用户体验,点击label对应字样即可获得焦点。 为了使label与文本框,文本域,单选复选框等对应,label中要加入for属性定义id,对象中要加入id属性,赋值为对应label的id。 2.input又有一个type:email 3.关于默认值的问题,显性默认值,是value,隐形默认值提示为placeholder
2018-06-230个赞
Courses in the relevant section:CSS basic syntax
CSS语法: 选择器(元素名) {属性1; 属性2; } html中引入css: 在<head> 中, <link rel="stylesheet" href="MyCss.css" type="text/css"> <link rel="stylesheet" href="MyCss.css" type="text/css">
2018-06-240个赞
Courses in the relevant section:Embedded CSS styles
单页面统一嵌入式 head中写 style type="text/css" 定义元素{ 属性 } /style body中, <定义元素>text</定义元素>
2018-07-311个赞
Courses in the relevant section:External CSS styles
<link href="base.css" rel="stylesheet" type="text/css" /> 另外,任何元素都能定义。 body,h1,自定义
2018-07-310个赞
Courses in the relevant section:Priority of the three methods
就近原则(离被设置元素越近优先级别越高) 内联in body>嵌入in head>外部 嵌入>外部 嵌入在外部后面,离被修饰元素近。
2018-07-310个赞
Courses in the relevant section:CSS element selector
这个叫元素选择器
2018-07-310个赞
Courses in the relevant section:CSS selector grouping
h1,h2,h3{ } *{ } 1.优先级 *通配符《特定 2.*可以用来定义初始化,比如margin外边距,padding内边距
2018-07-310个赞