html - 带有 HTML 和 CSS 的代码元素破坏了我在 Shopware 中的购物世界

标签 html css navigationbar shopware

我在 Shopware 5 中创建了新的 Shopping World,并在下一个 HTML 和 CSS 中插入了代码元素:

<!DOCTYPE html>
<html>
<head>
         
    <style>
         ul {
           list-style: none;
           margin: 0 auto;
           width: 100%;
           position: fixed;
           top: 107px;
           left: 497px;      
       }
       ul li {
           float: left;
           padding-bottom: 0;
       }
       ul a {
           display: block;
           text-align: center;
           color: black;
           text-decoration: none;
           font-family: 'couture', serif;
           padding: 6px 23px;
           background: white;
           font-size: 12pt;
       }
        ul li#active a {
            border-bottom: 4px solid black;
            color: black;
            padding-bottom: 23px;
        }
    </style>

</head>
<body>
    <ul> 
        <li id="active"><a href="">Mens</a></li>
        <li><a href="">Women</a></li>
    </ul>
</body>
</html>

我认为问题出在 Shopware 5 中,但我是 Shopware 的新手,我很困惑。这段代码简直毁了我的购物世界,我不知道为什么?这是带有下划线的非常简单的小导航菜单。我需要了解 Shopware 情况的人。 先谢谢你

最佳答案

您不应该将 html/css 放入购物世界。 您应该创建自定义情感元素,查看本指南: https://developers.shopware.com/developers-guide/custom-shopping-world-elements/

关于html - 带有 HTML 和 CSS 的代码元素破坏了我在 Shopware 中的购物世界,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49916062/

相关文章:

php - 带有 $_POST 的 PDO

css - Div 标签在文本中间创建了一个空隙

javascript - 使用可拖动事件增加 div 的宽度,并排显示

javascript - 将鼠标悬停在 wordpress 菜单中单击

swift - SwiftUI 中的 NavigationBarTitle 文本颜色

javascript - 如何限制输入="text"中的小数只显示整数

javascript - 使用 html js j 绘制 3D Canvas 饼图

Javascript 输入类型 ="color"表单验证

html - BLOGGER 模板的编程语言是什么?

php - 显示每个类别最新帖子的下拉导航菜单