没有样式就是最好的样式

Archive for June, 2005


样式表背景缩放(background)问题

Jun 19, 2005 Author: | Filed under: Uncategorized

很遗憾,即使是 opera 也不支持 css3 的 background-size,还能指望谁呢?:(

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

所以只能采用 z-index 来模拟背景。

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

注意:opera 在缩放图片的时候使用的是 bi-linear(双线性),而其他浏览器用的是 nearest-neighbor。如果你不清楚二者的区别,可以搜索相关资料。一般做图软件(photoshop,firefox)缩放图片时默认的算法就是bi-linear,质量较好。nearest-neighbor 质量差,速度快,但有一种特殊用途就是放大像素图,不产生抖动或者说高斯模糊。自己搜吧,这不是讲图片设计的地方。

[Edit on 2005-6-19 21:44:48 By guoshuang]

表单 accesskey 属性应用

Jun 19, 2005 Author: | Filed under: Uncategorized

作为表单交互设计的一个基本元素,accesskey属性在windows面板中使用得很多,可我们的程序员们却都对它不感兴趣,当然这和我们的非拼音文字有很大的关系。但如果是类似电信营业、财务等需要大量录入的系统,只用鼠标显然是愚蠢的。当然 tab 和→←↑↓也可以满足很多需求。简单地理解就是 — 没有鼠标,一样也可以自由的在网页中穿行

下面只说 accesskey

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

在windows中,按 alt+n 键切换焦点到 oName 表单域中;Mac,按 ctrl+n;opera 是个特例,需要 shift+ESC+n 。

类似地,链接也可以通过这样的操作来获得(甚至直接触发)焦点。

当然,用户不可能看源代码去找这个 accesskey,所以我们需要在表单中注明:

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

进一步,可以通过样式表 :after 来减少代码量。很遗憾,IE 6 看不到效果。

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

这里有个小问题需要解释一下。很多采用网页新标准的 blog 会使用 1,2,3…做为主导航的 accesskey,这在opera下面会有问题,因为 opera 的功能键是 shift+ESC,因为shift所以 1 不起作用,!可以。用opera看下面小例子,其它浏览器没有这个问题。

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

还可以通过 title 来提示用户可使用的 accesskey

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

为了代码更漂亮更简洁,可以js 来自动装换 accesskey -> title,这是导航菜单

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

加入提示效果后:

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

[Edit on 2005-6-19 19:23:20 By guoshuang]

无表格表单样式表css

Jun 19, 2005 Author: | Filed under: Uncategorized

受dodo老人家启发…实际应用中,可能远比这复杂…

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

365key 的tag功能的确有了很大改进

Jun 19, 2005 Author: | Filed under: Uncategorized

http://blog.94smart.com/index.php?q=node/256

http://www.kenlee.cn/index.php?job=art&articleid=a_20050614_031309

路径重定向以及tag 提示,代码很有意思,虽然看得人头疼…回头拉住zdg,一定要问个痛快。

显示更多

显示更多

[Edit on 2005-6-19 7:38:58 By guoshuang]

opera 地址栏 ctrl+enter 补全网址的方法

Jun 3, 2005 Author: | Filed under: Uncategorized

Many people have asked for a way to do address completion using Ctrl+Enter a la IE. Well, thanks to the investigative work of Lee Harvey, Steven V. Gunhouse, and Lauri Raittila from the Opera newsgroups, we now have a good way to do this.

In the keyboard editor, go to the Document window section and add a new shortcut for “enter ctrl”. Then, enter the command

显示更多

Now, this shouldn’t interfere with Wand, as long as focus is in the address bar.

You can also add commands for other address endings, like .net, .org, .co.uk, etc. Enjoy!

相关资料:

http://weblog.timaltman.com/node/750?PHPSESSID=a7416a2b3e7c78e02f14873cf9fde2db

http://groups-beta.google.com/group/opera.customize.general/msg/54d4232a26751d4e?safe=images&as_umsgid=cq6icn%24iiq%241@mx1.opera.com&lr=lang_en&hl=en

[Edit on 2005-6-3 11:28:24 By guoshuang]

Top 10 Opera 8.0 Beta 3 Changes

Jun 2, 2005 Author: | Filed under: Uncategorized

Well, it’s that time again. Here are my favorite changes in Opera 8.0 Beta 3:

SVG 1.1 Tiny support. Need I say more?

All protocols can be redirected to other applications. IRC://, NNTP://, and news:// URLs can now be set to open with other applications. And, if you run a standalone Opera Mail installation, hxxp:// and hxxps:// URLs can be redirected to your browser installation![1]

The “Title” setting in the [User Prefs] section of opera6.ini can now contain a “%t” variable, which will be the page title. In other words, you can set the order that information appears in the Title bar. If you want the Opera build number first, use something like “Title=Opera 8.0.%s - %t”. If “%t” is left out, the title will show before the custom Title setting.

Save attachments dialog. At long last, you can save multiple attachments to messages quickly. There are still several rough spots in attachment handling, but things are definitely getting better.

The bug where “$” couldn’t be used in search strings is fixed. I do a lot of message-id searches in Google Groups, which often triggered this bug. It’s so nice to have one more annoyance gone.

Improved collapsed address bar. If a page opens a pop-up without an address bar, the pop-up will now have a small bar at the top that shows the hostname and security information (if any) for the page. I’m starting to wish that it worked on all pages, not just pop-ups.

Various prototype objects are now available to scripts. I really don’t know what this means, but some of our testers were pretty excited about it.

Better form styling. We fixed a couple of bugs with the way form elements are styled, so things are working better and are more consistent with other browsers.

Display notifiers immediately if special effects are turned off. If you’re annoyed by the slow rising and falling of the notification dialogs, but still want to know when stuff is happening, you can disable skin special effects[2] and notifications show briefly, then vanish without all the scrolling.

New preferences dialog. The new dialog has better organization and will probably be less daunting for new users. Some stuff that should have stayed didn’t, though.

[1] Admittedly, there’s a slight problem with this: if you open a link from an e-mail, a blank page is still opened even if the link is sent to another application. So, it may not be a complete solution yet, but it’s a large step in the right direction.

[2] Unfortunately, that setting is currently only available by messing with opera6.ini. Set “Special effects=0″ in the [User Prefs] section of opera6.ini to try it out. Note that this setting affects some skin styles, too.

from:

http://weblog.timaltman.com/node/760?PHPSESSID=a7416a2b3e7c78e02f14873cf9fde2db

[Edit on 2005-6-2 11:42:12 By guoshuang]