闻心阁

一蓑烟雨看苍生,半壶浊酒笑红尘

Using M+ Font in VS Code

2016-08-01 约 1 分钟读完 搬砖秘籍
Monsopaced font is essential for a programmer, M+ FONTS is one of my favorite font. Long time ago, I used VS Code to write the code, and it’s difficult to set the M+ Font. Here is the solution. "editor.fontFamily": "'M+ 1mn'" Now you can see it works well :-)

Win7(x64) Can not Get the Update

2016-08-01 约 1 分钟读完 搬砖秘籍
Recently, I reinstall my Windows 7 SP1(x64), but I can’t update the system, it always checking the update an has a high CPU usage. It’s a so long time that I can’t bear it. So I find a method that can accelerate it. Two Packet Installing and searching for updates is slow and high CPU usage occurs in Windows 7 and Windows Server 2008 R2 Windows Update Client for Windows 7 and Windows Server 2008 R2: December 2015 继续阅读

关于CSS中box-sizing属性的一点心得

2016-05-15 约 1 分钟读完 搬砖秘籍

最近需要写这样一个布局:一个父元素,里面有两个子元素,两个子元素的宽度为父元素的一半。这在CSS中倒是一个很简单的问题,所以很容易就有如下代码。

<style type="text/css">
  *{
    padding : 0;
    margin  : 0;
  }
  #outer{
    width      : 600px;
    height     : 300px;
    background : red;
    color      : white;
  }
  #outer:after{
    content : "";
    clear   : both;
  }
  #in1{
    width      : 50%;
    height     : 80%;
    float      : left;
    background : blue;
  }
  #in2{
    width      : 50%;
    height     : 80%;
    float      : right;
    background : green;
  }
</style>
<div id="outer">
  <div id="in1">
    IN1
  </div>
  <div id="in2">
    IN2
  </div>
</div>
继续阅读