[英]Using CodePen- How can I add my CSS to HTML for Wix?
I am new to working with HTML and CSS.我是 HTML和CSS 的新手。 I have used HTML code on Wix before, but have not tried to also include CSS.
我之前在 Wix 上使用过 HTML 代码,但还没有尝试过包含 CSS。
I would like to create infinite scrolling text that outlines text on hover.我想创建无限滚动文本,在悬停时概述文本。 I found and customized a code on CodePen:
我在 CodePen 上找到并自定义了一个代码:
I added a photo of the codes I'm trying to use because the formatting was weird in this post.我添加了我尝试使用的代码的照片,因为这篇文章中的格式很奇怪。
I tried using and tags, but when I add it to Wix, it will not work.我尝试使用和标签,但是当我将它添加到 Wix 时,它不起作用。 At this time, I receive a list of the words I added with a hyperlink (that directs to nowhere), and the background color is the color I input for the text.
这时,我收到了一个我添加的单词列表,带有一个超链接(指向无处),背景颜色是我为文本输入的颜色。 I have been at this for DAYS!!
我一直在这几天!! Any insight is greatly appreciated!
非常感谢任何见解!
I found the answer!我找到了答案!
You should be able to do this with basic html language.您应该能够使用基本的 html 语言来做到这一点。
<html>
<style>
</style>
<body>
<script type="text/javascript">
</script>
</body>
</html>
You add the html bit between and and then between the two styles you put the CSS code and finally the you put the JS (javascript) language.您在放置 CSS 代码的两种样式之间添加 html 位,然后在放置 JS (javascript) 语言。
Hope this helps!希望这可以帮助! (It took me a good 5 hours to understand this).
(我花了 5 个小时才理解这一点)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.