它是固定的嗎?
無論如何!
首先將css
和jQuery
圖書館鏈接到您的WordPress Header
。然後從jsfiddle中添加html codes
。畢竟事情做完了。
包括從jsfiddle到頁面底部的copied js script
文件。看下面的code
會幫助你理解。 但它在HTML
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<link href="copied_css_file_from_the_jsfiddle.css" rel="stylesheet" type="text/css">
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script><!-- jQuery Library -->
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script><!-- jQuery Library -->
</head>
<body>
<p>This is the proper way <small>How to use css js and html in correct way</small></p>
<!-- add the html code from the JSFIDDLE-->
<script type="text/javascript">
$(document).ready(function() {
//Copy and paste the script from the JSFIDDLE
});
</script>
</body>
在任何社交網絡搜索yeshansachithak
聯繫我。謝謝
在問題本身中包含一個最小工作示例以及其他鏈接將很有用。 –
你的wordpress主題幾乎有100%的機率與你的CSS搞混了。嘗試檢查元素,它的父母,並刪除所有不必要的'display','float'和'position'規則 – rafaelcastrocouto
嗨湯姆,感謝您的評論。我上面引用的jsfiddle帶你到一個工作示例。我被要求不要發佈一個實際的鏈接,因爲它是一個客戶的網站,我知道這將是方便,對此感到遺憾。 – RachJenn