Skip to content

Commit d0577fb

Browse files
committed
更新README.md,新增关于<a>元素在没有文本值时如何显示链接的说明,提升文档的准确性和实用性。
1 parent a862af5 commit d0577fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

网站前端/HTML+CSS学习笔记/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,7 @@
935935
29.`<label>``<input>`相关联后,则点击`<label>`的默认行为(`preventDefault`)是聚焦或激活其关联的`<input>`
936936
937937
>[MDN:label](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/label)
938+
30.`<a>`元素没有文本值但`href`属性有链接时显示链接:`a[href^="http"]:empty::before { content: attr(href); }`
938939
939940
---
940941
## CSS

0 commit comments

Comments
 (0)