0
我有這樣的:jQuery插件未通過HTML驗證
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('#menu-main-menu li a').after('<p class="separator">/</p>');
jQuery(".textwidget a[href^='http://']").attr("target","_blank");
});
</script>
而且無法通過HTML驗證與錯誤:
document type does not allow element "p" here
的片段被放置在底部的頁腳我的WordPress平臺的文件。
任何建議,好嗎?這顯然是我的段落標籤。 .separator
的css只是一個display: inline;
的東西,我用它作爲我的菜單的分隔符。