前端学习笔记2 标签-重点
作者: 时间:2023-09-29阅读数:人阅读
a标签
属性有:href target download(没啥用) rel=noopener
href=hyper reference 超链接
- 网址http https 或者不用 (//gooogle.com)
- 路径 /a/b/c 或者a/b/c index.html 或 ./index.html(哪里开http服务哪里是相对的根目录)
- 伪协议 javascript:代码;mailto:邮箱 tel;手机号
#空标签(太多行了会回到顶部) javascript:什么都不加无事发生的空标签效果 #xxx 跳到id=xxx的地方
target
内置值
_blank 是直接跳转 还是 开新页面跳转
_self 默认值
_top 顶层级打开(嵌套的小div里面打开,外部大盒子跳转)_
_parent 父级打开
程序员编的值(先了解)
window的name
iframe的name
iframe标签
内嵌窗口,已近很少使用了,还有些老系统在用
table标签
结构:
<table>
<thead>
<tr> < !--table row-->
<th> xxxxxxx</th>
<th>xxxxxxx</th>
</tr>
</thead>
本站所有文章、数据、图片均来自互联网,一切版权均归源网站或源作者所有。
如果侵犯了你的权益请来信告知我们删除。邮箱:licqi@yunshuaiweb.com