SO中文参考
首页
(current)
程序语言
c
java
python
c++
go
javascript
swift
c#
操作系统
linux
ubuntu
centos
unix
数据库
oracle
mysql
mongodb
postgresql
框架
node.js
angular
react-native
avalon
django
twisted
hadoop
.net
移动开发
android
ios
搜索
如何为 SVG 文档指定标题,其工作方式与 HTML 文档 <title> 中的 <head> 元素相同? 元素声明整个文档的人类可读名称,然后该名称显示在浏览器中(当将鼠标悬停在浏览器选项卡等上时)并且是 </desc> <question vote="2"> <p>在 HTML 文档 <pre><code><head></code></pre> 中,<pre><code><title></code></pre> 元素声明整个文档的人类可读名称,然后该名称显示在浏览器中(当鼠标悬停在浏览器选项卡等上时)并被用户代理理解。</p> <p>同样,我如何为 SVG 文档赋予顶级标题,使其实现与 HTML <pre><code><title></code></pre>相同的元数据功能,并由浏览器显示并由用户代理理解?</p> </question> <answer tick="true" vote="2"> <p>我找不到任何网络文章/教程来验证这一点,但是,据我所知,向 <strong>SVG 文档</strong>添加 <strong>meta-title</strong> 是完全简单的。</p> <p>在打开的 <pre><code><svg></code></pre> 元素正下方添加一个 SVG <pre><code><title></code></pre> 元素。</p> <p>就是这样。</p> <p><pre><code><title></code></pre> 在 SVG 中的使用比在 HTML 中要多得多,但未嵌套的 <pre><code><title></code></pre> 作为放置在 SVG 文档开头的第一个元素将充当整个 SVG 文档的 <strong>meta-title</strong>。 </p> <p><strong>示例:</strong></p> <pre><code><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1200 1200"> <title>My SVG Document Title Here</title> <!-- ^^^ SVG Title goes here at the start of the SVG --> <defs> [... SVG DOCUMENT CONTINUES...] </code></pre> </answer> </body></html>
问题描述
投票:0
回答:0
svg
最新问题
在 PHP 中合并两个数组 [关闭]
禁用允许使用 terraform 访问公共 blob
Amazon SES 找不到“来自域的自定义邮件”的 DNS 记录(一段时间后)
使用6台从机时,Jmeter主节点具体应该如何配置
在 Remix 应用程序中使用 MUI X Charts 时出现意外的令牌“导出”
在哪里创建HttpClient并在哪里调用?
java.lang.NoClassDefFoundError:无法初始化类com.azure.identity.implementation.RegionalAuthority
从二进制转换为十进制
有没有办法计算R中多个点的平均距离?
无效的`Podfile`文件:语法错误,意外的`end'
使用字符串值白名单过滤多维数组(包含不规则深度的元素)
根据产品选择在 Django Admin 中过滤相关颜色
如何在Moodle中批量删除多门课程
为什么这段代码没有从给定的 pdf 中提取完全相同的印地语文本
从 ForEach 控制器内提取的值创建 JSON 请求负载
如何使用 NLog 正确测量多线程 C# 应用程序中操作和指令所需的时间?
网络浏览器上全屏模式视频的热点叠加
'[node_modules\@react-native-community
无法通过其他 RUN 命令访问我的 Docker 文件中下载的存储库
如何在yocto配置中添加X11桌面环境?
© www.soinside.com 2019 - 2024. All rights reserved.