20191205笔记
一个div实现太极
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>太极</title> <style> *{ margin: 0; padding: 0; } body{ background-color: yellowgreen; } div{ width: 200px; height: 400px; background-color: #ffffff; border-left: 200px solid #000000; margin: 50px auto; border-radius: 50%; transition: all 1s ease-in-out; } div::after,div::before{ content: ""; display: block; width: 50px; height: 50px; border-radius: 50%; margin-left: -100px; } div::before{ background-color: #ffffff; border: 75px solid #000000; } div::after{ background-color: #000; border: 75px solid #fff; } div:hover{ transform: rotate(360deg); } </style> </head> <body> <div></div> </body> </html>
live server插件实现html代码的热更新
垂直水平居中的实现
水平垂直居中:
position:relative; left:50%; top:50%; transfrom:translate(-50%,-50%)
nodejs源码阅读
- 纯javascript写的核心模块(lib)
- 带Native Binding和javascript核心模块(lib)
- c++代码(src)
JavaWeb和NET常用框架
SSH(struts+spring+hibernate)
MV4
多层架构
前后端分离与用户验证
cookies和session,或者token