html入门教程
知识点
相关文章
更多最近更新
更多HTML 超链接(a标签、锚)
2019-03-28 21:43|来源: 网路
a标签: anchor锚
1.超链接 -> 点击之后跳转页面
格式: 协议名+资源
http://www.baidu.com(我们常用的)
mailto :
xx@itcast.cn 发送邮件
thunder: 迅雷下载
QQ:
旺旺:
2.锚 => 在当前页面中跳转例如:回到顶部 ==> 使用就是锚.
1>做一个锚标记,使用a标签的name属性指定锚点名称. <a name="abc" >这是顶部</a>
2>跳转到锚标记,使用href属性指定要跳转到的锚点.<a href="#abc" >回到顶部</a>
a标签中的属性
href属性: 跳转的资源名 或 锚点名称
name属性: 定义锚点时,指定锚点名称.
target属性: 针对资源跳转时使用.
该属性不指定==> 在当前页面打开.
_blank : 在空白页打开.
示例:
<html> <head> <!-- 解决乱码,告诉浏览器 当前文档类型和编码 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> <a name="abc" >这是顶部</a> <a href="http://www.baidu.com" >百度</a><br/> <a href="06-图形标签.html" target="_blank" >06-图形标签.html</a><br/> <a href="mailto:xxx@itcast.cn" >联系我们</a><br/> <a href="thunder://EF16EA123123" >点击下载</a> <img src="haha (1).jpg" alt="这是大长腿!" title="这是大长腿~~" /><br/> <img src="haha (2).jpg" alt="这是大长腿!" title="这是大长腿~~" /><br/> <img src="haha (3).jpg" alt="这是大长腿!" title="这是大长腿~~" /><br/> <img src="haha (4).jpg" alt="这是大长腿!" title="这是大长腿~~" /><br/> <img src="haha (5).jpg" alt="这是大长腿!" title="这是大长腿~~" /><br/> <a name="middle" ></a> <img src="haha (6).jpg" alt="这是大长腿!" title="这是大长腿~~" /><br/> <img src="haha (7).jpg" alt="这是大长腿!" title="这是大长腿~~" /><br/> <img src="haha (8).jpg" alt="这是大长腿!" title="这是大长腿~~" /><br/> <img src="haha (9).jpg" alt="这是大长腿!" title="这是大长腿~~" /><br/> <img src="haha (10).jpg" alt="这是大长腿!" title="这是大长腿~~" /><br/> <a href="#abc" >回到顶部</a> <a href="#middle" >回到中间</a> </body> </html>
转自网络
相关问答
更多-
没有。 如果您正在被重定向,那么它是在您向HTTPS请求的服务器上做出的决定。 No. If you are being redirected, then it is a decision made on the server you are making the HTTPS request to.
-
尝试这个。 import BeautifulSoup doc = '''
Page title This is paragraph one.
This is paragraph two.''' soup = Bea ...
-
如何删除html超链接'a'标签的默认链接颜色?(How to remove the default link color of the html hyperlink 'a' tag?)[2022-05-13]
理论上: a { color: inherit; } ...会使元素承担其父代的颜色(这是我认为你正在寻找的)。 IIRC,一些版本的MSIE有明确的继承问题。 The inherit value: a { color: inherit; } … will cause the element to take on the colour of its parent (which is what I think you are looking for). -
如何使用vbscript单击嵌入在html锚标签中的超链接?(How to click a hyperlink embedded in an anchor tag of a html using vbscript?)[2022-05-15]
arrowRight是(CSS)类名,而不是标记名,因此您需要检查带有arrowRight类的arrowRight : For Each a In ie.document.getElementsByTagName("a") If a.getAttribute("class") = "arrowRight" And a.innerText = "Next" Then a.Click Exit For End If Next arrowRight is a (CSS) class na ... -
我是这样做的: This is text before the tool tip linktool tip text and this is after it. .TT-container { position: relative; border-bottom : 1px dashed #999999; } .TT-value { display: n ...
-
HTML中的超链接(Hyperlink in HTML)[2022-06-12]
-
尝试这个: $string = '\\n\\\\*HYPERLINK \\"http://www.youtube.com/watch?v=A0VUsoeT9aM\\"A Youtube Video'; $pattern = '/http[?.:=\\w\\d\\/]*/'; $namePattern = '/(?:")([\\s\\w]*)'; preg_match($pattern, $string, $matches); preg_match($namePattern, $string ...
-
问题出在我的yaml文件中,只需在应用程序中为每个页面添加一个部分: application: myapp version: 1 runtime: php api_version: 1 threadsafe: false handlers: - url: /static static_dir: static expiration: 30d - url: /(.*\.(gif|png|jpg|ico|js|css|ttf)) static_files: \1 upload: (.*\.(g ...