阅读:3966回复:5
求js或css,让baidu和google搜索结果居中。
宽屏显示器,搜索结果靠左太蛋疼。
|
|
1楼#
发布于:2012-08-01 14:14
@-moz-document domain("www.baidu.com") { #head,#search > FORM,#container{ margin-left: 18% !important; width:800px!important;} } 贴个百度的 |
|
2楼#
发布于:2012-08-01 14:14
Google不会啊,Google左边不还一大栏东西的吗
|
|
|
3楼#
发布于:2012-08-01 14:14
我的解决办法是将搜索结果改成宽版显示,这是google的,百度不经常用,所以没改。usercontent.css
@-moz-document url-prefix("http://www.google."), url-prefix("https://www.google.") { /* Google搜索结果宽版显示 */ div#cnt { min-width:833px !important; } #center_col {margin-right:0px!important; max-width:833px !important;} #cnt #res .g .s {max-width:833px !important;} #cnt #center_col, #cnt #foot { width:833px !important;} .mw { max-width:833px!important;margin-left:-5px!important;} .big .mw { max-width:833px!important;} } |
|
4楼#
发布于:2012-08-01 14:14
GoogleMonkeyR for Greasemonkey
http://userscripts.org/scripts/show/9310 我用这个,把Google变成双排。百度也有相关的UserJS,但我不用百度,你自己找下吧 |
|
5楼#
发布于:2012-08-01 14:14
zds111:@-moz-document domain("www.baidu.com") { #head,#search > FORM,#container{ margin-left: 18% !important; width:800px!important;} } thanks 把你的代码修改了一下。 彻底居中了。 @-moz-document domain("www.baidu.com") { #head,#rs,#search > FORM,#container{ margin-left: 26.5% !important; width:900px!important;} } |
|