Home>Article>Web Front-end> How to make sharp corners in css3
How to make sharp corners in css3: First create an HTML sample file; then determine the position of the sharp corners; finally, set the attributes of the specified div to "top:6px;left:-3px;border-top:0px ;border-bottom..." to achieve the sharp corner effect.
The operating environment of this tutorial: windows7 system, css3 version, thinkpad t480 computer.
Recommended: "css video tutorial"
The sharp corners are on top
Rendering:
##Code:
##
尖角p
The sharp corners are underneath
Rendering:
##
尖角p
The sharp corner is on the left
Rendering:
Code:
尖角p
The sharp corner is on the right
Rendering :
#Code:
##
尖角p
The above is the detailed content of How to make sharp corners in css3. For more information, please follow other related articles on the PHP Chinese website!