|
阅读:3233回复:3
自动缩放搜索栏到指定宽度(stylish)
这个脚本很是喜欢,效果很好如图,但是有个不足,就是经常切换搜索引擎无效,鼠标一移离立即收缩,连续操作不是很方便,请高手帮忙帮忙修改一下,能延时3-5秒收缩,切换搜索引擎失败估计就是收缩过快引起的
/*¤*¤*¤*¤*¤*¤*¤*¤*¤*¤*¤*¤*¤*¤*¤*¤*¤*¤*¤*¤*/
/* Searchbar customized based on */
/* whatrevolution's style called */
/* painted clearly - search bar */
/* hover & focus - modified by */
/* Freestyler 23.9.2008 */
/*¤*¤*¤*¤*¤*¤*¤*¤*¤*¤*¤*¤*¤*¤*¤*¤*¤*¤*¤*¤*/
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#search-container
{max-width: 20px !important;}
#search-container > #searchbar .searchbar-textbox
{display: none ! important;}
#search-container:focus, #search-container:hover
{width: auto !important;}
#search-container:hover > #searchbar .searchbar-textbox,
#search-container > #searchbar .searchbar-textbox[focused="true"]
{display: -moz-box !important; min-width: 180px !important;}
#searchbar .search-go-button, #searchbar .searchbar-dropmarker-image
{display: none !important;}
原文地址:http://userstyles.org/styles/10780 |
|
|
1楼#
发布于:2009-03-08 15:43
要延时就要JavaScript,Stylish就力不从心了
推荐Searchbar AutoSizer |
|
|
2楼#
发布于:2009-03-08 15:43
谢谢狼兄,为这些功能加个扩展不划算,我再找找其他有没有可替代的脚本,当然作者能改进解决BUG最好了
|
|
|
3楼#
发布于:2009-03-08 15:43
|
|
|
