tumblr javascript embed with css skin

♀尐吖头ヾ 提交于 2019-12-11 08:35:34

问题


I am trying to add a single most recent tumblr post to another page. I found the easiest way is to use the Javascript code provided by tumblr

here is what they offered:

<script type="text/javascript" src="http://occupy837.tumblr.com/js"></script>

adding ?num specifies the number of posts, so I can see that I am almost there

<script type="text/javascript" src="http://occupy837.tumblr.com/js?num=1"></script>

when I go to the page (www.Occupy837.com) One single post shows up! my only issue now is that it has a single 1 on the left of the post

tumblr quotes "[use the] code to embed your posts as basic HTML that you can skin with CSS:"

Does anyone have any idea how I can remove that number?! what do I have to do with CSS to make that disappear!


回答1:


Here is the answer!

after doing some research I found this to be the solution:

ol.tumblr_posts{

    list-style:none;
}

be careful not to type "tumbler" because it is always without the "e"




回答2:


Add this to your css

li.tumbler-post {
  list-style: none;
}


来源:https://stackoverflow.com/questions/9903590/tumblr-javascript-embed-with-css-skin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!