css 常用图形

CSS绘制常用小图形 CSS 常用图形总结(不定时,边学边更新)2020/7/17总结三道杠(移动端常见)双层圆点绘制三角形和梯形的绘制 2020/7/17总结 三道杠(移动端常见) 利用padding和background-clip实现 .icon-menu{ display: inline-block; width: 140px; height: 10px; padding: 35px 0; borde 阅读详情

一共收集整理了图形20个,比较实用,同时也为了熟悉CSS的代码。整合了一下,有错误欢迎指出。

1.正方形



#square {

width: 100px; height: 100px; background: red;}


2.长方形




  #rectangle { width: 200px; height: 100px; background: red;} 

3.左上三角




  #triangle-topleft { width: 0; height: 0; border-top: 100px solid red;  border-right: 100px solid transparent; }


4.右上三角




  #triangle-topright { width: 0; height: 0; border-top: 100px solid red;  border-left: 100px solid transparent;}

5.左下三角




  #triangle-bottomleft { width: 0; height: 0; border-bottom: 100px solid red;  border-right: 100px solid transparent; } 
6.右下三角




  #triangle-bottomright { width: 0; height: 0; border-bottom: 100px solid red;  border-left: 100px solid transparent; } 
7.平行四边形




  #parallelogram { width: 150px; height: 100px; -webkit-transform: skew(20deg);   -moz-transform: skew(20deg);     -o-transform: skew(20deg); background: red; } 
8.梯形




  #trapezoid { border-bottom: 100px solid red; border-left: 50px solid transparent; border-right: 50px solid transparent; height: 0; width: 100px; } 

9.六角星



#star-six { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 100px solid red; position: relative; } #star-six:after { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-top: 100px solid red; position: absolute; content: ""; top: 30px; left: -50px; }

10.五角星




  #star-five {    margin: 50px 0;    position: relative;    display: block;    color: red;    width: 0px;    height: 0px;    border-right:  100px solid transparent;    border-bottom: 70px  solid red;    border-left:   100px solid transparent;    -moz-transform:    rotate(35deg);    -webkit-transform: rotate(35deg);    -ms-transform:     rotate(35deg);    -o-transform:      rotate(35deg); } #star-five:before {    border-bottom: 80px solid red;    border-left: 30px solid transparent;    border-right: 30px solid transparent;    position: absolute;    height: 0;    width: 0;    top: -45px;    left: -65px;    display: block;    content: "";    -webkit-transform: rotate(-35deg);    -moz-transform:    rotate(-35deg);    -ms-transform:     rotate(-35deg);    -o-transform:      rotate(-35deg);     } #star-five:after {    position: absolute;    display: block;    color: red;    top: 3px;    left: -105px;    width: 0px;    height: 0px;    border-right: 100px solid transparent;    border-bottom: 70px solid red;    border-left: 100px solid transparent;    -webkit-transform: rotate(-70deg);    -moz-transform:    rotate(-70deg);    -ms-transform:     rotate(-70deg);    -o-transform:      rotate(-70deg);    content: ""; }

11.五边形




  #pentagon {     position: relative;     width: 54px;     border-width: 50px 18px 0;     border-style: solid;     border-color: red transparent; } #pentagon:before {     content: "";     position: absolute;     height: 0;     width: 0;     top: -85px;     left: -18px;     border-width: 0 45px 35px;     border-style: solid;     border-color: transparent transparent red; } 
12.六边形




  #hexagon { width: 100px; height: 55px; background: red; position: relative; } #hexagon:before { content: ""; position: absolute; top: -25px;  left: 0; width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 25px solid red; } #hexagon:after { content: ""; position: absolute; bottom: -25px;  left: 0; width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-top: 25px solid red; }

13.桃心




  #heart {     position: relative;     width: 100px;     height: 90px; } #heart:before, #heart:after {     position: absolute;     content: "";     left: 50px;     top: 0;     width: 50px;     height: 80px;     background: red;     -moz-border-radius: 50px 50px 0 0;     border-radius: 50px 50px 0 0;     -webkit-transform: rotate(-45deg);        -moz-transform: rotate(-45deg);         -ms-transform: rotate(-45deg);          -o-transform: rotate(-45deg);             transform: rotate(-45deg);     -webkit-transform-origin: 0 100%;        -moz-transform-origin: 0 100%;         -ms-transform-origin: 0 100%;          -o-transform-origin: 0 100%;             transform-origin: 0 100%; } #heart:after {     left: 0;     -webkit-transform: rotate(45deg);        -moz-transform: rotate(45deg);         -ms-transform: rotate(45deg);          -o-transform: rotate(45deg);             transform: rotate(45deg);     -webkit-transform-origin: 100% 100%;        -moz-transform-origin: 100% 100%;         -ms-transform-origin: 100% 100%;          -o-transform-origin: 100% 100%;             transform-origin :100% 100%; } 
14。无限大符号




  #infinity {     position: relative;     width: 212px;     height: 100px; } 
  #infinity:before, #infinity:after {     content: "";     position: absolute;     top: 0;     left: 0;     width: 60px;     height: 60px;         border: 20px solid red;     -moz-border-radius: 50px 50px 0 50px;          border-radius: 50px 50px 0 50px;     -webkit-transform: rotate(-45deg);        -moz-transform: rotate(-45deg);         -ms-transform: rotate(-45deg);          -o-transform: rotate(-45deg);             transform: rotate(-45deg); } 
  #infinity:after {     left: auto;     right: 0;     -moz-border-radius: 50px 50px 50px 0;          border-radius: 50px 50px 50px 0;     -webkit-transform: rotate(45deg);        -moz-transform: rotate(45deg);         -ms-transform: rotate(45deg);          -o-transform: rotate(45deg);             transform: rotate(45deg); } 
15.蛋




  #egg {    display:block;    width: 126px;     height: 180px;    background-color: red;    -webkit-border-radius: 63px 63px 63px 63px / 108px 108px 72px 72px;    border-radius:        50%   50%  50%  50%  / 60%   60%   40%  40%; }

16.提示对话框




  #talkbubble {    width: 120px;     height: 80px;     background: red;    position: relative;    -moz-border-radius:    10px;     -webkit-border-radius: 10px;     border-radius:         10px; } #talkbubble:before {    content:"";    position: absolute;    right: 100%;    top: 26px;    width: 0;    height: 0;    border-top: 13px solid transparent;    border-right: 26px solid red;    border-bottom: 13px solid transparent; }

17.十二角星



  #burst-8 {     background: red;     width: 80px;     height: 80px;     position: relative;     text-align: center;     -webkit-transform: rotate(20deg);        -moz-transform: rotate(20deg);         -ms-transform: rotate(20deg);          -o-transform: rotate(20eg);             transform: rotate(20deg); } #burst-8:before {     content: "";     position: absolute;     top: 0;     left: 0;     height: 80px;     width: 80px;     background: red;     -webkit-transform: rotate(135deg);        -moz-transform: rotate(135deg);         -ms-transform: rotate(135deg);          -o-transform: rotate(135deg);             transform: rotate(135deg); } 

18.八角星



#burst-8 {     background: red;     width: 80px;     height: 80px;     position: relative;     text-align: center;     -webkit-transform: rotate(20deg);        -moz-transform: rotate(20deg);         -ms-transform: rotate(20deg);          -o-transform: rotate(20eg);             transform: rotate(20deg); } #burst-8:before {     content: "";     position: absolute;     top: 0;     left: 0;     height: 80px;     width: 80px;     background: red;     -webkit-transform: rotate(135deg);        -moz-transform: rotate(135deg);         -ms-transform: rotate(135deg);          -o-transform: rotate(135deg);             transform: rotate(135deg); }

19.钻石




  #cut-diamond {     border-style: solid;     border-color: transparent transparent red transparent;     border-width: 0 25px 25px 25px;     height: 0;     width: 50px;     position: relative;     margin: 20px 0 50px 0; } #cut-diamond:after {     content: "";     position: absolute;     top: 25px;     left: -25px;     width: 0;     height: 0;     border-style: solid;     border-color: red transparent transparent transparent;     border-width: 70px 50px 0 50px; } 

20.八卦


  #yin-yang { width: 96px; height: 48px; background: #eee; border-color: red; border-style: solid; border-width: 2px 2px 50px 2px; border-radius: 100%; position: relative; }
  #yin-yang:before { content: ""; position: absolute; top: 50%; left: 0; background: #eee; border: 18px solid red; border-radius: 100%; width: 12px; height: 12px; } 
  #yin-yang:after { content: ""; position: absolute; top: 50%; left: 50%; background: red; border: 18px solid #eee; border-radius:100%; width: 12px; height: 12px; } 
css clip-path裁剪形状,实现绘制常用的形状和图形。反向裁剪 效果图: 图1: 图2: 图3: 代码: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-sc 阅读详情

相关推荐

项目管理-(补充)七种基本质量工具

七种基本质量工具,用于PDCA循环的架构内 解决与质量相关的问题,分为老七工具和新七工具。 1)老七种:刘英只点劣质茶(流程图、因果图、直方图、散点图、帕累托图、控制图、核查表)2)新七种:锯树联亲测动优(矩阵图、树形图、关联图、亲和图、过程决策程序图、活动网络图、优先矩阵)

weixin_42081167的博客 4604

css画各种图形

css画图形

qq_36987708的博客 1148

Hi3559AV100制作ext4文件系统和烧录emmc

1、首先生成所需文件系统,见本博客&lt;Hi3559AV100文件系统制作cramfs&gt;。 2、使用工具生成EXT4文件系统 ./make_ext4fs -s -l 96M rootfs_hi3559av100.ext4 ./rootfs 3、烧录文件系统 mw.b 0x82000000 ff 0x12C00000;tftp 0x82000000 STM_...

阿Sir问道 7037

45个值得收藏的 CSS 形状

CSS能够生成各种形状。正方形和矩形很容易,因为它们是 web 的自然形状。添加宽度和高度,就得到了所需的精确大小的矩形。添加边框半径,你就可以把这个形状变成圆形,足够多的边框半径,你就可以把这些矩形变成圆形和椭圆形。我们还可以使用 CSS 伪元素中的::before和::after,这为我们提供了向原始元素添加另外两个形状的可能性。通过巧妙地使用定位、转换和许多其他技巧,我们可以只用一个 HTML 元素在 CSS 中创建许多形状。

m0_68271787的博客 591

二叉树的操作之统计二叉树中节点的个数

一,问题描述 给定一颗二叉树,已知其根结点。 ①计算二叉树所有结点的个数 ②计算二叉树中叶子结点的个数 ③计算二叉树中满节点(度为2)的个数   二,算法分析 找出各个问题的基准条件,然后采用递归的方式实现。 ①计算二叉树所有结点的个数 1)当树为空时,结点个数为0,否则为根节点个数 加上 根的左子树中节点个数 再加上 根的右子树中节点的个数 借助遍历二叉树的思路,每访问一个结...

weixin_34200628的博客 4569

软件自动化测试脚本如何编写,编写自动化测试脚本的几点注意事项

我们需要自动化测试脚本的原因:1、验收测试是一项非常复杂和费力的被用来确保软件质量的环节。它的目的就是使软件能得到充分运行并且能使其符合原始需求。2、测试的目的无非就是满足了两个结果:测试通过或测试不通过。为了能实现每个测试结果,必须要明确每个测试用例。并且对于整个系统而言在合同中必须定义测试用例的失败标准,而且这个失败标准数必须是可接受的。3、测试用例的通过条件必须有一个清晰的标准,标准可以被定...

weixin_39575775的博客 2251

[转]CSS绘制常见的40种形状和图形

这里有一些看似很简单却非常强大的纯css绘制的图形,有常见的三角形,圆形,矩形还有各种常见的多边形,甚至是网站小图标。在这里分享给大家。

Admans的专栏 597

K8s(二十一):在 Kubernetes 集群中部署 MySQL8.0 高可用集群(1主2从)

🔴 K8s(二十一):在 Kubernetes 集群中部署 MySQL8.0 高可用集群(1主2从)

✨ 欢迎来到【Seal ^_^ 的优快云博客】!✨ 3万+

css绘制各种各样的形状图形

我们在编写前端代码时,经常会遇到各种各样的形状图形(如:边框对话框,三角形,平行四边形、圆角边框、圆形、四叶草、花瓣等),除了用背景图片(css雪碧图或css精灵图+定位引用)和插入img图片的方法,我们还可以用css边框、圆角(border-radius)、渐变和定位的方法结合使用,绘制各种各样的形状图形。 1、实心圆 .circle...

weixin_33676492的博客 851

Win10或Win11电脑找不到以太网网络适配器的解决方法

Win10或Win11电脑找不到以太网网络适配器的解决方法

Robot_PLC_HMI_Automation 658

【原理图PCB专题】原理图图纸锁定/解锁与PCB文件加密方式

在工作中我们会遇到需要冻结原理图进行评审和加密图纸防止被他人盗用的需求。那么在OrCAD Capture中如何对图纸进行锁定与解锁,如何在Allegro中对PCB工程进行加密呢?

一点硬件 3258

css 常见图形绘制

css 常见图形绘制。

似水流年QC的博客 1775

“华为杯”研究生数学建模竞赛2020年-【华为杯】D题:无人机集群协同对抗(附获奖论文和MATLAB代码实现)

1.问题重述摘 要:本文针对非线性约束条件下红蓝双方无人机集群协同对抗的最优规划问题,结合贪婪队形、非线性规划、内点法、蒙特卡洛方法和全联立正交配置有限元法,构建了无人机集群协同对抗推演模型。,构建了。我们综合考虑了,和。首先分析红方在集群约束下的贪婪队形和拦截策略,然后我们基于内点法联合MATLAB和AMPL编程求解蓝方突防的非线性规划解,最后基于蒙特卡洛法对整个蓝方突防过程进行推演,得到突防概率图。通过推演,我们提出了两块的区域作为所求区域,并对蓝方的最优突防策略进行分析。

getusushu的博客 1553

常用Css3特效和图形

整理了一些常用的css效果和css图形,方便自己查看和使用。不喜勿喷,谢谢。 截图: 预览地址:https://www.bright2017.top/animation

Bright2017的博客 1077

VC中sqlite的使用

在VC中对sqlite的使用,实现数据库大批数据的快速插入,读取数据库中的数据在ListCtrl中显示

VB摄像头监控

该VB模块可对摄像头捕获的画面进行录像等,可在创建的窗口进行控制

CSS实现各种图形(常用图形)

整理一下css实现常用图形 1.正方形 { width: 200px; height: 100px; background: red; } 2.长方形 { width: 200px; height: 100px; background: red; } 3.圆 { width:100px; height...

qq_39106854的博客 2926

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

CSS实现常用的图形

1.正方形 #targetId{ width: 100px; height: 100px; background: orange; /*同上实现 height: 0; width: 0; border-width: 50px; border-style: solid; border-color: orange; */ } 2.长方形 #targetId{ width: 200px; height: 100px; background: orange;

BayMin0-0的博客 367

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

常用的css图形

在大佬博客看到的,稍微整理了一下,效果图: css绘画常见图形 css: div{ display: inline-block !important; float: left !important; margin-

Bright2017的博客 510

【html5/css3】CSS实现各种图形(常用图形)

1.正方形 { width: 200px; height: 100px; background: red; } 2.长方形 { width: 200px; height: 100px; background: red; } 3.圆 { width:100px; height:100px; background:red; border-radius:50%; /* 水平、垂直半径为宽高的50% */ } 4.椭圆 { .

Umbrella_Um的博客 1043

css之创建常用图形

css 创建常用图形网站中有一些常见的图形用css就可以实现出来,本人就此总结了几种常用的css图形画法,引用链接http://www.cnblogs.com/lovemomo/p/4878293.html圆形.circle{ width: 100px; height: 100px; background:red; -moz-border...

weixin_30919919的博客 84

常用css动画和图形

若隐若现 @keyframes fadeIn { 0% { opacity: 0; } 50% { opacity: 0.5; } 100% { opacity: 1; } } 无限循环 @keyframes rotation { from { transform: rotate(0deg); } to { transform: rotate.

LPLIFE的博客 402

css画常用图形

1.圆形、上半圆 在设置CSS时要设置宽度和高度相等,然后设置border-radius属性为宽度或高度的一半即可 .circle { width: 120px; height: 120px; background: #7fee1d; -moz-border-radius: 60px; -webkit-border-radius: 60px;...

weixin_30239339的博客 82

css3 cheatsheet,CSS3常用图形.cheatsheet-css-shapes

C h e a t S h e e t C S S S i mp l e S h a p e sma d e b y l a n d o f w e b . c o m< d i v i d = " s q u a r e " > < / d i v > # s q u a r e { w i d t h : 1 0 0 p x ; h e i g h t : 1 0 0 ...

weixin_36143191的博客 231

html用border制作扇形,用CSS3中的border-radius属性制作常用图形

CSS3新增了很多属性,有些属性非常的实用,不仅提高了工作效率,而且让页面的颜值变得更高。比如CSS3 中的border-radius属性,我们可以用它来绘制一些常用的图形,从而减轻美工的负担。这篇文章就和大家分享,如何用border-radius属性制作正圆,半圆,扇形,弧形。有兴趣的小伙伴可以看看, 希望可以帮助到你。1、用border-radius制作正圆border-radius属性的四个...

weixin_31998661的博客 827

图形 - bootStrap4常用CSS笔记

.rounded 图片显示圆角效果 .rounded-circle 设置椭圆形图片 .img-thumbnail 设置图片缩略图(图片有边框) .img-fluid 响应式图片 .float-right 图片右对齐 .float-left 图片左对齐 转载于:https://www.cnblogs.com/wm2...

weixin_30794491的博客 149

div+css图形设计

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> .a{ width: 100px; height...

qq_33271461的博客 260
上一篇: Web 服务器配置和管理
下一篇: css 颜色大全
bing_JavaScript
博客等级 码龄11年 44粉丝 34原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值