思客笔记第三天

  • 使用absolute布局时,记得将父元素设置为relative
  • 使用browsersync可以方便实现响应式开发:
    相关步骤可参照 官网.或以下简易步骤
    step1. download Node.js
    step2. 安装 BrowserSync
    在npm目录下打开一个终端窗口,运行以下命令
    : npm install -g browser-sync
    step.3 在要运行的文件目录下打开终端窗口,在命令行中运行命令:
    browser-sync start --server --port 4000 --files index.html --files css/main.css

你可能感兴趣的:(思客笔记第三天)