简体   繁体   English

使用 CodePen - 如何将我的 CSS 添加到 HTML for Wix?

[英]Using CodePen- How can I add my CSS to HTML for Wix?

I am new to working with HTML and CSS.我是 HTMLCSS 的新手。 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.我添加了我尝试使用的代码的照片,因为这篇文章中的格式很奇怪。

代码片段 HTML 和 CSS

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.

相关问题 如何将Github中的代码添加到Codepen项目中? - How can I add code from Github into my Codepen project? 我可以使用相同的主机和域在 HTML、CSS、JS 中插入我自己的网站建设吗? - Can I insert my own website building in HTML, CSS, JS in WIX using the same hosting and domain? 如何将自己的自定义CSS和HTML添加到Prestashop? - How can I add my own custom css and html to Prestashop? 如何在我的 HTML 页面中添加 CSS 编辑器 - How can I add a CSS editor inside my HTML page 我在尝试设置我的第一页的响应性时遇到了困难(使用 html 和 css),这是我到项目的 codepen 链接 - I'm having difficulties trying to set the responsiveness of my first page ever (using html and css), here it's my codepen link to the project 如何解决 body 属性以在 CSS 中为 Codepen 显示颜色? - How can I solve the body property to display color in CSS for Codepen? 如何使用CSS在html页面中添加3列? - how can i add 3 columns in an html page using css? 如何使用 css 样式在 html 中控制我的图像? - How can I control my image in html using css style? 如何改善我的JavaScript? 包括codepen - How can i improve my javascript? codepen included 如何使用 PHPMailer 将 HTML、CSS 和 PHP 添加到电子邮件中? - How can I add HTML, CSS, and PHP to emails using PHPMailer?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM