發表文章

目前顯示的是 3月, 2015的文章

圖片 Responsive

div > img { width: auto; height: auto; max-height: 100%; max-width: 100%; } 如果要置中的話,再加上 position 設定。 div { position: relative; } img { width: auto; height : auto; max-height: 100%; max-width: 100%; position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: auto; }

[Windows] 遠端連線錯誤的解法

錯誤訊息:遠端工作階段中斷,因為沒有終端機伺服器用戶端存取授權供這部電腦使用 解法: 在 '執行' 輸入: regedit 開啟登入編輯程式,找到這個位置 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSLicensing 的機碼 (就是資料夾啦~)砍掉它! 重新連線一次,應該就可以了。 如果還是不能連它又會噴一次錯誤,來不及紀錄中文,請看下面的英文,然後跳第三步。 If it doesn’t work and you get the following error message: “The remote computer disconnected the session because of an error in the licensing protocol“ 在遠端桌面連線按右鍵,以系統管理員身分執行即可。

文字太長省略成「...」

overflow : hidden; text-overflow : ellipsis; white-space : nowrap; 補充: 如果設定在 td 標籤會發現沒有作用,因為 td 屬性是 table cell,如果是一般的 block 就會正常,可以修改如下 td { max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }