我在 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/