【发布时间】:2017-08-28 01:15:18
【问题描述】:
我想编辑我的 Wordpress 页面的 HTML 代码。确切地说,我想在我的Wordpress page 中创建一个页面,而不是帖子,我想在其中公开我的简历并插入我的照片 will changes when I pass the mouse above of it。
我尝试搜索有关此的内容,然后找到了this。在这个参考中,作者谈到了代码修改,但不是我的特殊情况。
当我尝试在 Wordpress 页面中编辑代码时,我无法使用某些代码。例如:<a>、<div> ...
我想用这样的东西:
<div class="authorimage">
<a href="https://www.codesyntax.com/eu/bloga/author/lfernandez">
<img class="mainimage" src="https://www.codesyntax.com/lfernandez.jpg" alt="Luistxo Fernandez" title="Luistxo Fernandez">
<img class="hoverimage" src="https://www.codesyntax.com/lfernandezhover.jpg" alt="Luistxo Fernandez" title="Luistxo Fernandez">
</a>
</div>
但在已发布的页面中会出现以下内容:
<img class="mainimage" src="https://www.codesyntax.com/lfernandez.jpg" alt="Luistxo Fernandez" title="Luistxo Fernandez">
<img class="hoverimage" src="https://www.codesyntax.com/lfernandezhover.jpg" alt="Luistxo Fernandez" title="Luistxo Fernandez">
我需要将此代码用于我的目的。我该怎么做才能解决这个问题?
谢谢大家。
【问题讨论】: