卻又只想顯示圖片的某一部份。
可在圖片外層包一個div。
<div style="width:900px;overflow:hidden;">
<a href='#'><img src='https://xxxxxxx" style="width:900px;margin-top:-100px"/></a>
</div>
首頁的度估圖片就是利用此方法。因本來的圖片太小,又懶得動手放大,
直接將貼圖的寬度設為900,再利用margin-top 將圖往上移,顯示出想要的區塊
<div style="width:900px;overflow:hidden;">
<a href='#'><img src='https://xxxxxxx" style="width:900px;margin-top:-100px"/></a>
</div>
var ids = {1, 2, 3};
var query = from item in context.items
where ids.Contains( item.id )
select item;
來做查詢。
但是一使用LinqToExcel 這樣用舊直接掛了,出現
VisitSubQueryExpression method is not implemented
CODE {
display: block; /* fixes a strange ie margin bug */
font-family: Courier New;
font-size: 8pt;
overflow:auto;
background: #f0f0f0 url(http://klcintw.images.googlepages.com/Code_BG.gif) left top repeat-y;
border: 1px solid #ccc;
padding: 10px 10px 10px 21px;
max-height:200px;
line-height: 1.2em;
}