随笔分类 -  CSS

摘要:HelloKitty会不会很好奇第7个怎么写。嘿嘿div a:nth-child(7) 也不难。第二个呢,可以这么写div a:first-child+a可是倒数第二个该怎么写呢?最终我还是找到了css标准http://www.w3.org/TR/selectors/#nth-last-child-pseudo也许这个是学习css的最佳途径 阅读全文
posted @ 2013-11-15 20:42 Epirus 阅读(277) 评论(0) 推荐(0)
摘要:http://www.dengor.com/archives/618.html 阅读全文
posted @ 2013-11-08 09:47 Epirus 阅读(139) 评论(0) 推荐(0)
摘要:block: the rest elementinline: 除了block有回车的效果外,inline的元素调整widht height是没有效果的。 阅读全文
posted @ 2013-11-08 09:41 Epirus 阅读(112) 评论(0) 推荐(0)
摘要:http://www.w3school.com.cn/cssref/css_selectors.asp 阅读全文
posted @ 2013-11-08 09:22 Epirus 阅读(162) 评论(0) 推荐(0)
摘要:最近学习了一些CSS的知识,发现cnblog是可以允许自己自定义css来调整博客的内容的。可以调整的内容非常的多,我觉得可以消除阅读时产生的广告。在博客中选择设置,然后在CSS自定义页面中填写DIV#comment_form.commentform{visibility:hidden}这样就可以去除阅读时的广告效果。不过这样子是没有评论功能的。像我不需要评论功能的就可以这样子,如果需要评论功能就用下面的也不错div#ad_text_under_commentbox{visibility:hidden}div#site_nav_under{visibility:hidden}div#site_n 阅读全文
posted @ 2012-11-26 20:50 Epirus 阅读(305) 评论(0) 推荐(0)
摘要:1.内联样式表<p style="color:red;size="12px"> Contents </>2.嵌入式样式表<style> /* explaination */ p{ color:red; Font-Size=4cm; }</style><body> </body>3.外部样式表 适用于多个文档 .CSScss filep{ color:red; Font-Size=4cm; }include it :<link rel="stylesheet" type 阅读全文
posted @ 2012-08-03 17:49 Epirus 阅读(230) 评论(0) 推荐(0)