Skip to content

面试题:使用 CSS 画一个三角形 #123

Description

@sisterAn
<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><metaname="viewport" content="width=device-width, initial-scale=1.0"><title>画三角形</title><style>
.triggle{
width:0px;
height:0px;
border-width:100px;
border-style: dotted dotted solid dotted;
border-color: transparent transparent red transparent;
}
</style></head><body><divclass="triggle"></div></body></html>


前端小技巧:边框写三角形

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions