2012年3月24日
摘要: 1. Basic shapesA. SquareThis not exactly css3 but I thought we need to cover all shapes and actually this is mostly where all the other shapes will start from. In fact all other shapes will be square with tweaked corners or borders .. you will get the idea later …1 .square{2 display:block;3 width:10 阅读全文
posted @ 2012-03-24 23:05 咖啡戏 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 目前网页上使用的字体都是常见的几种,如’Lucida Grande’, Verdana, Arial, Sans-Serif,中文常见的有宋体。要想用比较个性的字体就比较麻烦了,因为你不能保证客户端是否支持这种字体,常用的方法是用Photoshop 把文字制作成图片。 为了让网页设计更加灵活,Google从2010年5月19日启动了网页在线字体服务,并一口气发布了十八字体族。但与 Monotype Web Fonts、FontShop 等字体商不同,Google 这次开放的字体与它其他很多服务一样,完全免费。Google 目前提供的字体共有十八种,均为目前比较流行的免费字体,包括为 Andro 阅读全文
posted @ 2012-03-24 22:45 咖啡戏 阅读(269) 评论(0) 推荐(0) 编辑
摘要: How to useParte 1 - SetupjQuery lightBox plugin uses the jQuery JavaScript library, only. So, include just these two javascript files in your header.<script type="text/javascript" src="js/jquery.js"></script><script type="text/javascript" src="js/jqu 阅读全文
posted @ 2012-03-24 22:34 咖啡戏 阅读(376) 评论(0) 推荐(0) 编辑
摘要: HotNews Pro主题评论提示信息,显示为总的评论数,并单独统计显示访客和博主及来至外部的引用,显示效果如下:目前有 314 条留言 其中:访客:240 条, 博主:70 条 引用: 4 <h2 id="comments">目前有 <?php $my_email = get_bloginfo ( 'admin_email' ); $str = "SELECT COUNT(*) FROM $wpdb->comments WHERE comment_post_ID = $post->ID ... 阅读全文
posted @ 2012-03-24 21:41 咖啡戏 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 匹配结尾的数字如 30CAC0040 取出40 3SFASDF92 取出92正则如下:/\d+$/g统一空格个数字符串内字符键有空格,但是空格的数量可能不一致,通过正则将空格的个数统一变为一个。例如:蓝 色 理 想变成:蓝 色 理 想aobert的正则:<script type="text/javascript"> var str="蓝 色 理 想" var reg=/\s+/g str = str.replace(reg," ") document.write(str) </script>判断字符串是不是由数 阅读全文
posted @ 2012-03-24 20:34 咖啡戏 阅读(496) 评论(0) 推荐(0) 编辑