gpt4 book ai didi

How do code inline css with html on Wix newsletter?(代码如何在wix时事通讯中内联css和html?)

转载 作者:bug小助手 更新时间:2023-10-25 23:34:22 24 4
gpt4 key购买 nike



I tried to use the html and use inline CSS to code, but when it's in preview it doesn't work. It gets shoved down lower than on the editing page.

我试图使用html和内联css来编写代码,但当它处于预览状态时就不起作用了。它被推到比编辑页面更低的位置。


Here's my code:

下面是我的代码:




<p style ="border:0; padding-top: 20px;">

<a href="https://www.savanhwellness.com/" target="_blank" rel="noopener noreferrer"><img src="https://static.wixstatic.com/media/2ffbb9_11c1aae28c5f43f2b5122067a7f9a34e~mv2.png" width="200" height alt="Savanh Wellness Logo"></a>

<a href="https://www.savanhwellness.com/shop-all" style="color:black; padding-left: 150px; font-family: 'Montserrat'; margin-top: -50">    SHOP</a>

<a href="https://www.savanhwellness.com/aapi-cc" style="color:black; font-family: 'Montserrat'">    AAPI-CC</a>

<a href="https://www.savanhwellness.com/contact" style="color:black; font-family: 'Montserrat'">    CONTACT</a>
</h3>

</p>




Edit page
https://i.stack.imgur.com/LNmAv.png

编辑页面https://i.stack.imgur.com/LNmAv.png


Preview
[1]: https://i.stack.imgur.com/Igxhw.png

预览[1]:https://i.stack.imgur.com/Igxhw.png


更多回答
优秀答案推荐

I made a few adjustments to your HTML code:

我对您的HTML代码做了一些调整:



  • Added the style attribute to the

    tag to include the inline CSS. There was an space between the equal sign and the style attribute

    标记以包括内联css。等号和样式属性之间有一个空格


  • Fixed the tag, which was not opened correctly and removed it as it seems to be unnecessary in this context.

  • Added proper units (e.g., "px" for margin-top) where needed.

  • Closed the tag with /> for proper HTML syntax.


Now, your HTML code should apply the specified inline CSS styles to the respective elements in your Wix newsletter. Make sure to paste this modified code into the HTML Settings of your Wix newsletter where you want to apply these styles.

现在,您的HTML代码应该将指定的内联CSS样式应用于Wix时事通讯中的各个元素。确保将修改后的代码粘贴到Wix时事通讯的HTML设置中,并将这些样式应用到其中。




<p style="border: 0; padding-top: 20px;">
<a href="https://www.savanhwellness.com/" target="_blank" rel="noopener noreferrer">
<img src="https://static.wixstatic.com/media/2ffbb9_11c1aae28c5f43f2b5122067a7f9a34e~mv2.png" width="200" height alt="Savanh Wellness Logo" />
</a>

<a href="https://www.savanhwellness.com/shop-all" style="color: black; padding-left: 150px; font-family: 'Montserrat'; margin-top: -50px;">SHOP</a>

<a href="https://www.savanhwellness.com/aapi-cc" style="color: black; font-family: 'Montserrat';">AAPI-CC</a>

<a href="https://www.savanhwellness.com/contact" style="color: black; font-family: 'Montserrat';">CONTACT</a>
</p>




更多回答

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com