arphen 寫:
用Stylish把聯合新聞網多餘的部份清乾淨,整個畫面往上移,但是要點左邊選單時,彈出選單卻跑到下面,滑鼠移過去時彈出選單也不見了:(
這部份恐怕非得用greasymonkey才行吧!:x
代碼:
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("udn.com") {
#TOP1,
#TOP2,
table[width="918"],
td[width="150"],
form[name="grad"],
table > tbody > tr > td > table[height="120"],
td[height="120"]
{ display: none !important; }
table > tbody > tr > td[height="120"]
{ background: white !important; }
table > tbody > tr > td > img[height="13"]
{ display:none !important; }
table > tbody > tr > td[height="120"]
{ height:133px !important; }
table[width="760"]
{ width:100% !important; }
td[width="30%"]
{ text-align: right !important; }
}
它的Java彈出選單出現的是絕對位置,所以如果動到上面,
選單出現的位置就會走掉。
我個人是針對新聞本身做修改啦,因為上首頁的機會不多。
搭配Adblock使用,規則↙
代碼:
http://ad*.udn.com/*
去掉了大部分的廣告。
在版面上比上次改進很多~
在新聞頁面一樣兼顧到了800*600解析度,
如果有任何地方可以改進,一定要說出來喔~
代碼:
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document url-prefix(http://udn.com),
url-prefix(http://www.udn.com) {
tr > td.text11,
form[name="grad"],
#top1 iframe[width="154"],
td[width="15"] + td[width="150"],
td[height="70"] > table[width="468"],
table.searchs img[width="82"],
table[width="149"],
iframe[width="470"],
td[width="478"] iframe,
/* 對付首頁 */
td[height="70"][valign="middle"] > table,
td[bgcolor="#EDEDED"] + td > table:first-child,
#top1 iframe[height="610"]
{
display: none !important;
}
/* 以上去廣告,以下為版面調整 */
table[width="760"]
{
text-align:center !important;
margin:auto !important;
width:100% !important;
}
td[background][height="120"],
table[width="760"] tr
{
background-repeat:no-repeat !important;
}
table.searchs
{
position: absolute !important;
left: 50px !important;
margin-top:-50px !important;
margin-left:200px !important;
}
img[width="760"][height="13"]
{
position: relative !important;
left: 0px !important;
display: block !important;
}
#top1
{
width:1% !important;
}
tr[valign="top"] > td[align="left"]
{
width: 1% !important;
}
td[width="30"][align="right"]
{
text-align: left !important;
}
}
@-moz-document url(http://udn.com/NEWS/main.html) {
table.searchs
{
left: 250px !important;
margin-left:0px !important;
}
td[width="158"][valign="top"]
{
display: none !important;
}
}
@-moz-document url-prefix(http://mag.udn.com) {
a.right_item img,
a.right_item iframe,
img[height="5"],
img[width="240"][height="80"],
table[cellpadding="2"] table.border
{
display:none !important;
}
td[width="560"],
table[width="560"]
{
width: 100% !important;
}
td[width="158"]
{
width:158px !important;
display:block !important;
}
table.border[cellpadding="3"]
{
height: auto !important;
}
table[width="996"]
{
width: 100% !important;
}
td[width="240"]
{
width:auto !important;
}
tr.statistics
{
display: none !important;
}
td#act_board
{
display: none !important;
}
}
@-moz-document url-prefix(http://stars.udn.com) {
td[valign="top"] > iframe:first-child,
td[width="240"] iframe,
table[cellpadding="5"],
table[cellpadding="5"] + table
{
display: none !important;
}
}
@-moz-document domain(udn.com) {
#top1 iframe[width="154"],#Layer1
{
display:none !important;
}
}
P.S. 其實我從來不上聯合新聞網的,只是拿它當練習....
不過這個站實在太麻煩了....嵌入廣告的花招真多,
在發表的時候邊檢查還是有一堆小地方要修,
還是用Table排版,Class和id設得又少....
現在完成還真是有成就感!