We know that Border-radius can draw the effect of a circle, but if the radius of the Border-radius is less than the border thickness, then the inner border does not have rounded effect
Such as:
The code is:
div#circle {
width:100px;
height:100px;
Background-color: #efe
Draw a triangle using CSS border and CSS border
Using border to draw triangles is actually an odd trick.
Using a border feature: When the width and height of an element are 0, set the width for
Through the CSS border can draw a triangle, different style combinations, have different effects, you can control its size, color, direction. Look at the following various graphics, I believe there may be a lot of graphics, we have not seen.Write the public style first:1{2 width: 0; 3 height: 0; 4 5 border-color: transparent; 6
Today only found thatBorder-radius can draw a lot of graphics, below with me to see it:Draw a circle in the case of a width and height :#div1 { /* width height equal, fillet range is high or wide by half or more */ background-Color:green ; width:120px; height:120px; Border-radius:60px; }Operation Result:When the width and height are unequal :#div1 {
Use CSS to draw the following chat box:Structure: Css:. Chat{width:300px;Height:80px;Border:1px solid #ccc;position:relative;}. Chat:before{content: "";position:Absolute; Left:-10px;Top:34px;Border-top:6px Solid Transparent;Border-bottom:6px Solid Transparent;Border-right:10
-radius | color*/box-shadow:10px 5px 5px Teal;/*offset-x | offset-y | blur-radius | spread-radius | color*/box-shadow:2px 2px 2px 1px teal;/*Inset | offset-x | offset-y | color*/box-shadow:inset 5em 1em Teal;/*Any number of shadows, separated by commas*/box-shadow:3px 3px Orange, -1em 0 0.4em Teal;The effects are: (plus some of the code in the previous example)-"1"--Blur-radius (blur radius) This picture can explain blur better:--This chart is more of a blur effect:We can clearly see the additio
The following is a C # in the control of the border angle to the arc of the implementation code is introduced, need friends can refer to the following
copy code code as follows:
private void Draw (Graphics Graphics, control control)
{
float X = float. Parse (Control. Width.tostring ())-1;
float Y = float. Parse (Control. Height.tostring ())-1;
pointf[] Pointfs = {
New PointF (2, 0),
New Poi
Requirements: Use HTML to draw a circle, a word in the circle to describe it, and to center the word.
Analysis: First draw a circle, my first idea is to use pictures, and was scolded a meal, and then think to use canvas painting, and was scolded a meal, this just noticed that CSS exists a property Border-radius.
Border
How does PS draw an envelope border?
1, we create a new wide 1000* high 600 pixels, background color for the white content area, we create a layer (shortcut key ctrl+shift+n), the system automatically generated layer 1, we selected Layer 1, we select the left side of the toolbar rectangular marquee tool, we draw a rectangle on the white background, We fill the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.