没有样式就是最好的样式

Archive for April, 2007


样式表伪类名数字开头

Apr 26, 2007 Author: | Filed under: Uncategorized

ie可以(6-7),firefox 不行(2.x),opera(9.20) 可以。id 也类似。

运行代码 [Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]

firefox userContent.css 设置 gmail 字体(转)

Apr 17, 2007 Author: | Filed under: Uncategorized
以下为引用内容:

查看一下页面的Class/ID信息,再修改一下userContent.css文件就好了。说白了,就是在自己的个人配置文件夹下的 chrome文件夹下建立一个userConetent.css文件,里面写上:

.mb, .tb { font-family: monospace !important; font-size: 12px !important; }

当然,再做得细致一点,就是加上Mozilla专有的对于CSS定义所应用站点的限制:

@-moz-document domain(mail.google.com)

{

.mb, .tb { font-family: monospace !important; font-size: 12px !important; }

}


via http://dengpeng.name/blog/2007/02/27/make-gmails-font-monospaced/

BTW:这篇 用(g)sopcast同时收看两个电视台 也非常有趣,又了解了一些 mplayer 知识…

以下为引用内容:

gsopcast可以打开多个进程,这个没什么可说的,关键就在于要在不同的gsopcast里对播放器应该用不同的设置,也就是说,对于mplayer,一个频道用“-vo xv -ao alsa”这样的一般性设置,另一个用“-vo x11 -ao null来输出视频到X11并静音。

一般情况下,GSopcast里对播放器的设置是:

mplayer -ontop -geometry 100%:100%

这会使用你在~/.mplayer/config里的vo和ao设置,你只需要确定你的默认设置是什么,然后在另一个GSopcast窗口里更改Mplayer的输出到另处一对vo/ao就行了。


opera右键定制:翻译、词典工具(转)

Apr 14, 2007 Author: | Filed under: Uncategorized

opera右键定制:翻译、词典工具

此方法是为网页选中文字添加一个翻译、词典工具的右键,以适合中国人的习惯。

一、首先修改profile文件夹下的search.ini文件,在其文本后添加以下内容。如果不想在地址栏显示以下搜索,则不要修改“Key=”值。“Search Engine”后面的数字根据自己的search.ini文件内容依次修改排列。

修改后,相关文件以UTF-8编码保存。

QUOTE:

[Search Engine 11]

Name=WorldLingo翻译

Verbtext=0

URL=http://www.worldlingo.com/wl/translate/zh/microsoft/computer_translation.html

Query=wl_text=%s&wl_gloss=1&wl_srclang=EN&wl_trglang=zh_cn&image.x=0&image.y=0

Key=

Is post=1

Has endseparator=0

Encoding=UTF-8

Search Type=167

Position=-1

Nameid=0

[Search Engine 12]

Name=CNKI英汉/汉英辞典

Verbtext=0

URL=http://dict.cnki.net/dict_result.aspx

Query=databasetj=zysearch&searchword=%s&x=0&y=0

Key=

Is post=1

Has endseparator=0

Encoding=utf-8

Search Type=168

Position=-1

Nameid=0

[Search Engine 13]

Name=Dict.CN

Verbtext=0

URL=http://dict.cn/qq/qq.php

Query=q=%s&Submit=%B2%E9%D1%AF

Key=

Is post=1

Has endseparator=0

Encoding=gbk

Search Type=169

Position=-1

Nameid=0

[Search Engine 14]

Name=辞洋

Verbtext=0

URL=http://www.ciyang.com/search.php?q=%s

Query=

Key=

Is post=0

Has endseparator=-1

Encoding=utf-8

Search Type=170

Nameid=-1752296956

Position=-1

[Search Engine 15]

Name=洪恩双语

Verbtext=0

Query=

Key=

Is post=0

Has endseparator=-1

Encoding=iso-8859-1

Search Type=171

Position=-1

Nameid=0

URL=http://study.hongen.com/dict/ndsearch.aspx?word=%s

[Search Engine 16]

Name=洪恩成语

Verbtext=0

Query=

Key=

Is post=0

Has endseparator=-1

Encoding=UTF-8

Search Type=172

Position=-1

Nameid=0

URL=http://study.hongen.com/dict/ndsearchchengyu.aspx?type=exact&word=%s

[Search Engine 17]

Name=WorldLingo(汉>英)

Verbtext=0

URL=http://www.worldlingo.com/wl/translate/zh/microsoft/computer_translation.html

Query=wl_result=Gateway&wl_text=%s&wl_gloss=1&wl_srclang=ZH_CN&wl_trglang=en&image.x=0&image.y=0

Key=

Is post=1

Has endseparator=0

Encoding=gbk

Search Type=173

Position=-1

Nameid=0

[Search Engine 18]

Name=汉语词典

URL=http://www.qcdata.cn/psearch.aspx?q=%s&dic=HY

Query=

Key=

Is post=0

Has endseparator=0

Encoding=utf-8

Search Type=174

Verbtext=0

Nameid=0

Position=-1

[Search Engine 19]

Name=汉语字典

URL=http://www.qcdata.cn/psearch.aspx?q=%s&dic=HZ

Query=

Key=

Is post=0

Has endseparator=0

Encoding=utf-8

Search Type=175

Verbtext=0

Nameid=0

Position=-1

二、然后找到Operadefaults下的standard_menu.ini文件,在其[Hotclick Popup Menu]区段下添加:

QUOTE:

Submenu, 翻译、词典工具, Translate menu 1

三、在Operadefaults下的standard_menu.ini文件里,找个适当位置添加:

QUOTE:

[Translate menu 1]

Item, CNKI双语 = Hotclick search, 168

Item, Dict.CN双语 = Hotclick search, 169

Item, 洪恩双语 = Hotclick search, 171

Item, 英译汉(WorldLingo) = Hotclick search, 167

Item, 汉译英(WorldLingo) = Hotclick search, 173

——————–1

Item, 辞洋字典 = Hotclick search, 170

Item, 汉语字典 = Hotclick search, 175

Item, 汉语词典 = Hotclick search, 174

Item, 洪恩成语 = Hotclick search, 172

via http://www.operachina.com/bbs/viewthread.php?tid=70&highlight=

阅读更多 opera 日志

关闭 opera 9.20 的 speed dial 功能

Apr 14, 2007 Author: | Filed under: Uncategorized

opera:config#UserPrefs|SpeedDialState

设置为3,关闭 speed dial 功能。

Speed Dial File speed dial 的配置文件

Speed Dial Search Type 默认的搜索引擎。顺序由 search.ini 决定

Speed Dial State

* 0 = Folded (”Show speed dial” message)

* 1 = Normal view

* 2 = ReadOnly (as in kiosk mode with -kioskspeeddial)

* 3 = Disabled (as in kiosk mode)

webdesign 相关

Apr 13, 2007 Author: | Filed under: Uncategorized

介绍了一些工具和压缩javascript,css的方法,让所有js和css发出一次 request。

http://www.getfirebug.com/

Firebug integrates with Firefox to put a wealth of web development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page.

http://www.ektron.com/campaign.aspx?cpid=NLC-2671&campaignid=2671

The goal of Ektron CMS400.NET is to provide you with one single application that gives you, and your entire team, all of the functionality necessary to create, deploy, and manage your Web site.

Use Ektron CMS400.NET to:

* Track the life cycle of your Web site visitors with fully-integrated Web site analytics

* Build your own online community with Wikis,blogs, forums, threaded discussions, and message boards.

* Turn your Web site into a high-speed two-way street with CMS400’s powerful forms engine

* Increase customer loyalty with subscriptions, web alerts and RSS feeds.

* Build portals with online personalization

* Build compliant sites with built in 508/W3C compliance & broken link checker

http://www.sitepoint.com/books/design1/

href="http://sitepointstatic.com/bundle/structure.css,

standard.css,format.css,index.css,promo.css" />

http://www.sitepoint.com/blogs/2007/04/10/faster-page-loads-bundle-your-css-and-javascript/

http://www.lighttpd.net/

firefox 2.0 设置技巧

Apr 13, 2007 Author: | Filed under: Uncategorized

原文来自 Geek to Live: Top Firefox 2 config tweaks

设置 browser.urlbar.clickSelectsAll 为 true,点击地址栏全选地址串。(设置后需要重启)

browser.startup.page

推荐设置为 3。firefox 会恢复崩溃时的会话页面,但是正常关闭时,你可能也需要上次的那些会话页面。(此效果类似于opera默认的设置)

0 启动打开 about:blank 空页面

1 启动打开homepage 主页面

2 启动打开上次最后关闭时的页面

3 启动打开上次最后会话的那些页面

browser.tabs.tabMinWidth

设置 tab 出现横向翻滚按钮时的最小宽度。默认100,太宽了,推荐75。

browser.tabs.closeButtons

设置 tab 关闭按钮的样式。lifehacher 推荐3,我个人推荐0。

0 当前tab显示关闭按钮

1 所有tab显示关闭按钮

2 所有tab都不显示关闭按钮

3 在tab bar 的最右面显示关闭按钮(firefox 1.5 的那种效果)

network.prefetch-next

预加载功能。打开后,firefox 会预加载它认为你可能会打开的链接。推荐关闭。

Browser.cache.memory.capacity

或者叫 browser.cache.disk.capacity(我的portable firefox 2.0.3就是如此),页面加载之后是否缓存,加快前进后退时的显示速度(不再重新渲染页面)。默认为0。

512-1G 内存推荐 15000

128-512M 推荐 5000

-1 根据内存自动决定 图片和 chrome 的缓存空间。firefox 2.0 的规则如下

Physical RAM Memory Cache (in KB)

32 MB 2048

64 MB 4096

128 MB 6144

256 MB 10240

512 MB 14336

1 GB 18432

2 GB 24576

4 GB 30720

8 GB and up 32768

0 不缓存图片和 chrome

browser.chrome.toolbar_tips

false 关闭firefox 界面的提示信息。

browser.urlbar.hideGoButton

设置为 true,关掉地址栏最后面的三角 go 按钮。firefox 2.0 的这个go按钮不能象以前那样直接在 customize 中拖走!

layout.spellcheckDefault

layout.spellcheckDefault = 2 把 input 中的拼写检查也关掉。我推荐0,全部关掉,咱们又不是英语国家。

0 关掉所有拼写检查

1 关掉多行文本域(比如 textarea)拼写检查

2 关掉多行文本域和单行文本域的拼写检查

dom.max_script_run_time

设置 firefox java script脚本超时警告的时间限制。

via http://www.firefoxbar.com/Firefox-skill/Firefox-skill-1946.html

“Ctrl+Shift+T” 恢复刚刚关闭的标签


点击这里打开新窗口浏览此网页

更多 firefox 设置技巧:

恢复 firefox 2.0 backspace 键页面后退功能

设置 firefox 2.x 强制在 tab 而不是 新窗口打开

15 个最酷的firefox 技巧

同时运行多个 firefox 实例

userChrome.css 定制 firefox 外观技巧

userContent.css 定制 firefox 网页外观