当我们在进行 Web 开发时,很多时候都是在有意或无意地创建一些矩形,深究一下,到底有多少中方式来得到一个几何图形呢?本文将简单介绍几种生成圆形、三角形和多边形的方式,并分析每种方式的优缺点。
下面是可能使用到的方式:
border-radius
border
rotating shapes with transform
pseudo elements
box-shadow
wrapping text into shapes with shape-outside
clip-path on an element
SVG assets
canvas
more
border-radius
使用 border-radius 样式属性是继续阅读 »
背景
最近打算对一个 Web API 项目做代码混淆,但由于宿主环境是 IIS,导致完全混淆后, IIS 不能很好的解析。于是决定自己写一个宿主环境。
用一个控制台项目,用一段简单的代码
```
static void Main(string[] args)
{
var config = new HttpSelfHostConfiguration("http://127.0.0.1:3333");
config.Routes.MapHttpRoute("default", "api/{controller}/{id}", new { id = RoutePara继续阅读 »
content
{:toc}
My girlfriend is learning html and css recently. I told her to follow the video. Here, I recommend a video in Chinese that suite for fresh learners. The name of course is Getting HTML web pages dev in 8 hours ( 8小时学会HTML网页开发 ) . I watched this video at very first time. The teacher named Eighteen Swallows继续阅读 »