分页: 66/67 第一页 上页 61 62 63 64 65 66 67 下页 最后页 [ 显示模式: 摘要 | 列表 ]
Jun 16
????以前做ASP时偶知道汉字传参大家不是非常支持,但是使用中没有发现什么问题,一直不知道为什么都不推荐实用中文参数,今天在无忧看到一句话“不知道汉字有编码的吗?”,顿时恍然大悟,这一编码影响了服务器端响应的速度,对于一个访问量比较大的站点,这点是非常重要的。以后偶尽量不用汉字了。
From 本站原创
Tags:
Jun 16
很多不错的很实用的js特效,有机会研究下。由于代码太多,偶只能在这里贴个地址了。

JavaScript经典效果集
From 本站原创
Jun 16
偶然在一个国外的站上看到的,收藏了。

脚本代码如下:
<script type="text/javascript">
function addbookmark()
{
    var nome_sito = "napyfab.com";
    var url_sito = "http://www.napyfab.com";
    if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt
        (navigator.appVersion) >= 4))
        window.external.AddFavorite(url_sito, nome_sito);
    else if (navigator.appName == "Netscape")
        window.sidebar.addPanel(nome_sito, url_sito, '');
    else
        alert("Sorry!Cann't Add this site to your favorite!.");
}
</script>


调用方法如下:
<a href="#" onclick="addbookmark()">添加到收藏夹</a>
From 本站原创
Tags: ,
Jun 16
在无忧上看到一个网友问这个问题,偶也比较感兴趣,楼主代码是这样写的:
<div style="width:240px;height:315px;line-height:100%;">
<img src="1.gif" border="0" height="56" width="240" />
<img src="1.gif" border="0" height="56" width="240" />
<img src="1.gif" border="0" height="56" width="240" />
<img src="1.gif" border="0" height="56" width="240" />
<img src="1.gif" border="0" height="56" width="240" />
</div>

这样看到的效果就是每个图片之间有小段空白。

有朋友贴出解决代码如下:
<div style="width:240px;height:315px;line-height:100%;">
<img src="1.gif" border="0" height="56" width="240" /><img src="1.gif" border="0" height="56" width="240" /><img src="1.gif" border="0" height="56" width="240" /><img src="1.gif" border="0" height="56" width="240" /><img src="1.gif" border="0" height="56" width="240" /></div>

即删除每个<img>标记之间的换行符,将所有标记连接在一起,这样问题解决了,但降低了代码的可读性,显然不是一种完美的解决办法。

最后hbjswj大哥给出了一种比较好的办法.全部代码如下:
<style>
img {float:left;} /*注意这个地方*/
</style>
<div style="width:240px; height:315px; line-height:100%;">
<img src="1.gif" border="0" height="56" width="240" />
<img src="1.gif" border="0" height="56" width="240" />
<img src="1.gif" border="0" height="56" width="240" />
<img src="1.gif" border="0" height="56" width="240" />
<img src="1.gif" border="0" height="56" width="240" />
</div>

为每个img增加了float:left,这就比较完美的解决了这个问题
From 本站原创
Jun 15
以前看过不少css的用法,但对于一些不叫少用的属性没有怎么看过,今天在经典上看贴,发现了一个对“怎么用CSS强制TD不换行?”话题的讨论,发现了table-layout这个属性的使用详解,先贴出来内容:
[quote]
table-layout  版本:CSS2  兼容性:IE5+ 继承性:无
语法:
table-layout : auto | fixed
取值:
auto :
From 本站原创
Tags: ,
分页: 66/67 第一页 上页 61 62 63 64 65 66 67 下页 最后页 [ 显示模式: 摘要 | 列表 ]