请找到图片,我想在红框的位置添加一个小部件:
我使用了这段代码
<!-- RIGHT SIDEBAR -->
<div id="side-right">
<!-- start feedwind code -->
<script type="text/javascript">document.write('\x3Cscript type="text/javascript" src="' + ('https:' == document.location.protocol ? 'https://' : 'http://') + 'feed.mikle.com/js/rssmikle.js">\x3C/script>');</script>
<script type="text/javascript">(function() {var params = {rssmikle_url: "http://classibook.com/feed",rssmikle_frame_width: "300",rssmikle_frame_height: "400",frame_height_by_article: "5",rssmikle_target: "_blank",rssmikle_font: "Arial, Helvetica, sans-serif",rssmikle_font_size: "15",rssmikle_border: "off",responsive: "on",rssmikle_css_url: "",text_align: "left",text_align2: "center",corner: "on",scrollbar: "off",autoscroll: "on",scrolldirection: "up",scrollstep: "3",mcspeed: "30",sort: "Off",rssmikle_title: "on",rssmikle_title_sentence: "Free classifieds of india latest Listings",rssmikle_title_link: "",rssmikle_title_bgcolor: "#0066FF",rssmikle_title_color: "#FFFFFF",rssmikle_title_bgimage: "",rssmikle_item_bgcolor: "#FFFFFF",rssmikle_item_bgimage: "",rssmikle_item_title_length: "55",rssmikle_item_title_color: "#0066FF",rssmikle_item_border_bottom: "on",rssmikle_item_description: "on",item_link: "off",rssmikle_item_description_length: "150",rssmikle_item_description_color: "#666666",rssmikle_item_date: "gl1",rssmikle_timezone: "Etc/GMT",datetime_format: "%b %e, %Y %l:%M %p",item_description_style: "text+tn",item_thumbnail: "full",item_thumbnail_selection: "auto",article_num: "15",rssmikle_item_podcast: "off",keyword_inc: "",keyword_exc: ""};feedwind_show_widget_iframe(params);})();
</script>
<div style="font-size:10px; text-align:center; ">
<a href="http://feed.mikle.com/" target="_blank" style="color:#CCCCCC;">RSS Feed Widget</a>
<!--Please display the above link in your web page according to Terms of Service.-->
</div>
<!-- end feedwind code -->
<!-- end feedwind code -->
但是我没有完全了解我的主页http://classibook.com/上的最新列表,请检查一下,在将该代码放在main.php之后,它显示在我网站上的最新列表下面... 请帮帮我......
答案 0 :(得分:0)
对于您的主页,请使用<div id="body">body content</div>
,并使用侧栏[{1}}并在页面中的<div id="right-side">right side content</div>
内使用以下css。
<style></style>
我希望这会有所帮助。