html
来源:互联网 发布:ios淘宝hd历史版本 编辑:程序博客网 时间:2024/06/05 12:48
1、label属性。
label:当鼠标移动到label标签包括的范围时,浏览器会自动将焦点转到标签相关的表单控件上。
<label for="male">male</label>
jsp与html的区别
2、如何实现浏览器内多个标签页之间的通信。
考察数据存储,本地存储和服务器存储。前端主要是本地存储。
localStorage
用localStorage.setItem(key,value);添加内容
用storage监听添加、修改、删除事件
window.addEventListener("Storage",function(event){
$("#name").val(enent.key+"="+event.newValue);
});
3、在页面是实现一个圆形可点击的区域。
1、map+area
<img src="1.jpg" width=100 heigeht=180 usemap="#Map" border="0">
<map name="Map" id="Map">
<area shape="circle" target="_blank" coords="100 100 100">
</map>
2、border-radius添加圆角边框
<style>
.circle{
width:100px;
height:100px;
background:grey;
border-radius:50%;
cursor:pointer;
position:absolute;
left:50px;
top:50px;
line-height:100px;text-align:center;
color:red;
}
</style>
<div class=circle>tfs</div>
3、纯js
4、title 与 h3 b 与 strong i 与 em区别
title只表示标题 h3表示层次分明的标题,对页面信息的抓取也有很大的影响
b只强调文本 strong不仅强调文本,在阅读设备还能加强语气
i是斜体 em是强调文本
5、实现不使用border画出1px高的线,在标准模式和怪异模式里都能显示。
<div style="height:1px backgroundcolor:green overflow:hidden ></div>
用呢?p{border:1px solid green;
}
- html
- html
- html
- HTML
- HTML
- html
- html
- html
- html
- HTML
- HTML
- Html
- html
- HTML
- html
- HTML
- HTML
- HTML
- A+B Format (20)
- nginx负载均衡配置方法之helloworld
- Servlet
- 搜索_图_最短路径_树_
- Redis安装与配置
- html
- html 20170211
- hdu-2553 N皇后问题
- Scala 函数式编程进阶 最重要的内容
- Vue.js 和 MVVM 小细节
- bzoj2176 Strange string 最小表示法
- ahk自动上传文件的脚本实例
- 面试题--死锁
- oracle中all,any的区别使用