如何创建一个徽标来代表文本文件?
how do I build a logo to tell the user they are going to click on a video or a text or a quiz like this?
how do I build that star and video click button and that text file logo?
THANKS
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以通过
标签来使用 svg。你可以自己画画!以下是具体方法。
SVG 入门
在您的 svg 标签中,首先创建两个属性,称为宽度和高度,这将是您的 svg 尺寸。
路径 路径
就是您通常想到的路径。一条通往一座城市的路。一条通往山的小路。使用路径标签来制作您的绘图。
命令
所有命令都存储在
d
属性中。以下是如何使用它们:
您可以在 SVG 中使用多个路径。
颜色!
使用路径标签中的属性
fill
可以使用 rgb 或 rgba 颜色更改颜色。You can use a svg using a
<svg>
tag. You can make your own drawing! Here's how to.Get Started with SVG
In your svg tag, first make two attributes called width and height and these will be your svg dimensions.
A Path
A path is what you normally think of. A path to a city. A path to a mountain. use the path tag to make your drawings.
Commands
All of the commands are stored in the
d
attribute.Here's how to use all of them:
You can use more than one path in a SVG.
Colors!
Use the attribute
fill
in the path tag to change the color using rgb or rgba color.您可以找到各种具有免费徽标的网站,我喜欢 https://www.iconfinder.com/ 它有免费可下载的 PNG
如果您希望徽标可点击,我会在 HTML 中添加一个按钮,并将图像包装在元素内,如下所示:
You can find various sites that have free logos, I like https://www.iconfinder.com/ it has free downloadable PNG's
If you want the logo's to be clickable I would have a button in the HTML and wrap the image inside the element like so:
<button> <img src="./image.png" /> </button>
首先,您需要使用 fontawesome 来获取图标。要获得它,您必须在
标记中使用
将其实施到代码中后,请转到 https://fontawesome.com/ 并搜索您想要的图标。一旦您使用
标签来获取图标。
选择并决定你想要什么后,你可以开始使用 javascript
和 html
现在您可以将其添加到任何地方在你的 html 页面上。现在用js。
Well first you would want to use fontawesome to get icons. to get it you must do in the
<head>
tag with<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v6.0.0-beta1/css/all.css">
once you implemented that into your code, go to https://fontawesome.com/ and search which icon you want. once you have use the
<i>
tag to get icon's.After you have chosen and decided what you want you can start with javascript
and the html
<button>
tag. So let me give you an example on the html<button onclick="cheese()"><i class="fa-thin fa-star">Click</i></button>
now you can add that anywhere on your html page. now with js.