<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<style>
body{
background-color: #000;
}
.sun{
width: 100px;
height: 100px;
background-color: orange;
position: absolute;
left:50%;
top:50%;
margin-left:-50px;
margin-top:-50px;
border-radius: 50%;
box-shadow: 0 0 30px 2px yellow;
}
.earth{
width: 300px;
height: 300px;
position: absolute;
left:50%;
top:50%;
margin-left:-150px;
margin-top:-150px;
border-radius: 50%;
border: 1px solid #ccc;
/*animation: rot 5s linear infinite;*/
}
.earth::after{
width: 30px;
height: 30px;
position: absolute;
left:0%;
top:50%;
margin-left:-15px;
margin-top:-15px;
border-radius: 50%;
background-color: dodgerblue;
content:"";
}
.moon{
width: 10px;
height: 10px;
background-color: #fff;
border-radius: 50%;
position: absolute;
left:-25px;
top:50%;
margin-left: -5px;
margin-top:-5px;
transform-origin: 30px 5px;
animation: rot 3s linear infinite;
}
.mars{
width: 400px;
height: 400px;
position: absolute;
left:50%;
top:50%;
margin-left:-200px;
margin-top:-200px;
border-radius: 50%;
border: 1px solid #ccc;
animation: rot 8s linear infinite;
}
.mars::after{
width: 20px;
height: 20px;
position: absolute;
left:0%;
top:50%;
margin-left:-10px;
margin-top:-10px;
border-radius: 50%;
background-color: gold;
content:"";
}
.venus{
width: 500px;
height: 500px;
position: absolute;
left:50%;
top:50%;
margin-left:-250px;
margin-top:-250px;
border-radius: 50%;
border: 1px solid #ccc;
animation: rot 10s linear infinite;
}
.venus::after{
width: 40px;
height: 40px;
position: absolute;
left:0%;
top:50%;
margin-left:-20px;
margin-top:-20px;
border-radius: 50%;
background-color: red;
content:"";
}
@keyframes rot {
0%{
}
100%{
transform:rotate(360deg);
}
}
</style>
</head>
<body>
<div class="sun"></div>
<div class="earth">
<div class="moon"></div>
</div>
<div class="mars"></div>
<div class="venus"></div>
</body>
</html>相关推荐
HTML5 Canvas 3D模拟太阳系小行星带运行动画.rar
HTML5 Canvas 3D模拟太阳系小行星带运行动画,太阳系中有一个小行星带介于火星和木星轨道之间,本效果用CSS3强大的动画生成效果模拟了这些天体运行的效果,围绕一个大行星旋转的效果,三维究竟感十分强烈,看似简单的动画,实际做起来比较麻烦,因为这牵扯到行星带中每个小行星的运动轨迹,请参见测试效果图所示的整体效果。
【H5】canvas绘制太阳系
【H5】canvas绘制太阳系 实现效果如下: 实现逻辑: Star为一个主逻辑函数,通过调用此函数传递不同的参数和圆的位置来实例化各种球的运动 实现代码如下: 代码内有详解 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="v...
纯HTML5制作的震撼太阳系网页
纯HTML5制作的震撼太阳系网页
vue地球围着太阳转
效果图 <template> <div class="earth-page"> <div class="sun-box"> <div class="sun-qiu"> <div class="yue sun-qiu"> <div class="xiao"> <img :src="yue" /> </di.
h5c3动画例子
使用html5+css3完成的网页设计作品
C3动画相关案例所需的小项目
这是我在学习JavaEE的时候,需要涉及到的前端关于CSS3的知识。里面有一些详细案例。有2D轮播图,3D轮播图,等等......
基于 H5 与 WebGL 的3D太阳系立体展示
前言 近年来随着引力波的发现、黑洞照片的拍摄、火星上存在水的证据发现等科学上的突破,以及文学影视作品中诸如《三体》、《流浪地球》、《星际穿越》等的传播普及,宇宙空间中那些原本遥不可及的事物离我们越来越近,人们对未知文明的关注和对宇宙空间的好奇达到了前所未有的高度。站在更高的立足点上,作为人类这个物种中的一员,我们理所应当对我们生活的星球、所在的太阳系有一定的认识,对 8 大行星各自的运行...
Html5绘制小型太阳系模型
Html5绘制小型太阳系模型
html5(h5)和css3(c3)绘制的太阳系
html> html> head lang="en"> meta charset="UTF-8"> title>title> style> body{ background-color: #000; overflow: hidden; } .sun{ width: 100px; height: 100px;
SQL Prompt 9.0插件突然无法使用解决办法(附防联网激活)多图+文字
可能由于Redgate公司最近抓盗版抓得严,导致激活后的SQL Prompt联网后突然无法使用,无论卸载重装都没办法继续使用,本人同时使用SQL Assistant和SQL Prompt,我喜欢SQL Assistant代码提示功能,而SQL Prompt我喜欢将查询结果复制后可以直接生产插入脚本,这是最爽的一件事,即便对表有多么熟悉,没有这些插件,几行语法都要敲大半天,目前本人已经离不开这两个插...
华为AR6140E/S5735设备密码策略配置全攻略:从复杂度到锁定机制
本文详细介绍了华为AR6140E/S5735设备的密码策略配置方法,涵盖密码复杂度、时效性和防护性三大核心维度。通过具体的CLI命令示例,指导管理员如何设置密码长度、字符组合、有效期及登录失败锁定等安全机制,为企业网络提供全面的用户名密码防护策略。
html里c3动画是什么,h5和c3怎样做出太阳系行星运转的动画效果
这次给大家带来h5和c3怎样做出太阳系行星运转的动画效果,用h5和c3做出太阳系行星运转动画效果的注意事项有哪些,下面就是实战案例,一起来看一下。做一个太阳系八大行星的运转动画,不包括行星的卫星,所有行星围绕太阳公转,行星采用纯色,暂时没有自转。动画中包括:太阳及各行星,运行轨道,行星公转动画。先画好草图,设计好大小和位置,根据公转周期计算好动画执行的时间。html的结构:一个class为sola...
四大厂商网络设备巡检命令实战指南:华为、华三、锐捷、思科
本文详细介绍了华为、华三、锐捷、思科四大厂商网络设备的巡检命令实战指南,涵盖硬件状态、软件运行和网络功能等核心维度。通过具体命令示例和实用技巧,帮助网络工程师高效完成设备巡检,预防潜在故障,确保网络稳定运行。
HTML5——太阳系环绕动画
效果图: 代码如下: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>SolarSystem-Rotate</title> </head> <body> <canvas id="myCanv...
告别点不亮!STM32F103驱动HT1621段码屏的常见坑点与调试心得
本文详细解析了STM32F103驱动HT1621段码屏的五大常见问题及解决方案,包括硬件连接、时序控制、RAM地址映射等关键难点。通过实测数据和代码示例,帮助开发者快速排查显示异常问题,提升驱动开发效率。特别针对HT1621与STM32F103的兼容性问题提供了专业调试建议。
Unity开发AR之Vuforia-MultiTarget笔记
在增强现实(AR)技术蓬勃发展的今天,越来越多的开发者开始探索如何将AR应用于各种场景中。Vuforia作为一个领先的AR开发平台,为开发者提供了强大的工具和功能,使得创建AR体验变得更加简单和直观。本文将为您介绍Vuforia的基本概念、特点,以及如何配置和使用MultiTarget功能,旨在帮助您更加深入地理解Vuforia SDK,并在您的项目中有效地应用。Vuforia是一个由PTC开发的增强现实SDK,它提供了丰富的功能,使团队能够在各种设备上创建互动的AR应用。
html5 太阳系(2)
<!DOCTYPE html> <html> <head> <title>银行系</title> <meta charset="utf-8"> </head> <body> <canvas id="mycanvas" width="1000" height="1000" style="background: #000;"></canvas> <script> var canv
高创伺服的龙门调试经历2
摘要:本文介绍了高创伺服在龙门控制中的配置方法。首先通过ServoStudio2连接驱动器并命名区分主从轴(MASTER/DIFF),然后设置接口模式、23位编码器参数及极限位置。重点说明龙门模式的三项关键参数设置(gantryfbenmode=1、gantrymode=1/2)和连线状态确认。建议单轴自动整定后调整从轴增益(如0.2),并强调带刹车电机的同步控制要点:刹车线需接同一继电器由主轴控制,避免位置偏差。
HTML5的Canvas画图模拟太阳系运转
今天研究的是利用HTML5的Cnavas画图来模拟太阳系运转,首先,在这个太阳系里分为画轨道和画星球两个部分,对 于每一个星球我们要知道它的颜色和公转周期,如下图。 采用面向对象编程的思想,代码如下: 你的浏览器不支持canvas标签! //设置2d绘图环境
8.5华为OD机试真题 新系统 - 最长不连续子串 (Java/Py/C/C++/Js/Go)
8.5华为OD机试真题 新系统 - 最长不连续子串 (Java/Py/C/C++/Js/Go)
手把手教你学Simulink——基于Simulink的隔离型DC-DC全桥变换器移相控制建模示例
本文详细介绍了基于Simulink的全桥移相变换器(PSFB)建模与控制方法。首先分析了全桥移相拓扑在大功率应用中的优势,包括ZVS实现、高频化和小型化特点。随后给出了具体设计参数和移相控制策略,采用电压外环+移相角内环的双闭环控制架构。文章重点演示了Simulink建模步骤,包括主电路搭建、移相PWM生成和PI控制器设计,并通过满载稳态、负载阶跃和轻载测试三种场景验证了系统性能。最后总结了工程实践要点,提出自适应控制等扩展方向,强调移相控制通过精准时间管理实现高效能量转换的核心价值。
HTML画布太阳代码,html5实现的canvas太阳系
效果:代码:太阳系您的浏览器不支持canvas标签var cxt = document.getElementById("canvas").getContext("2d");//画太阳和轨道function drawTrack(){cxt.beginPath();cxt.arc(500,500,20,0,Math.PI*2,false);cxt.closePath();var sunColor = ...
win10 跳过U8环境检测的IE WebControls.rar
win10 安装u8的时候 提示IE WebControls 不通过,这个工具可以欺骗u8的检查。 跳过U8环境检测的IE WebControls。提示导入失败后,重新检测通过。
安卓纸板 VR 项目(三)
原文:zh.annas-archive.org/md5/94E6723D45DBCC15CF10E16526443AE5 译者:飞龙 协议:CC BY-NC-SA 4.0 第六章:太阳系 当我 8 岁的时候,在学校的一个科学项目中,我用电线、聚苯乙烯泡沫球和油漆制作了一个太阳系。今天,全世界的 8 岁孩子们都可以在 VR 中制作虚拟太阳系,特别是如果他们读了这一章!这个项目创建了一个模拟我们太阳系的 Cardboard VR 应用程序。也许不是完全科学准确,但对于一个孩子的项目来说已经足够好了,比聚苯乙
深度学习工具包 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');```[](https://bitdeli.com/free "Bitdeli Badge")
文档:亲测可用解决vnc灰屏,黑屏,鼠标大黑叉情况
主要解决vnc-viewer灰屏,黑屏,鼠标大黑叉等现象,详细见文档。
web技术实现
页面开发框架: (1)多端页面:(小程序原生页面、H5) Taro 框架(基于 React技术栈) 注2:有些业务,一开始只做H5,后来迭代时,要求做小程序原生页面。这一点也要纳入需求评估。 (2)H5页面:Vue.js框架、React 框架 (3)App端: Android端开发语言:Kotlin(新)、Java(老) iOS端开发语言:Swift(新)、Objective-C(老) (4)B端开发,UI框架: React 技术栈:Ant Design(简称Antd) Vue 技术栈:E
华为的C语言编程规范.pdf
华为技术有限公司内部技术规范。本规范制定了编写C语言程序的基本原则、规则和建议。从代码的清晰、简洁、可测试、安全、程序效率、可移植各个方面对C语言编程作出了具体指导。
Kimi K3 实测:2.8T 参数、100 万上下文,我让它做了网页、PPT 和 3D 游戏
文章摘要: 作者实测了AI模型Kimi K3,其拥有2.8T参数和100万token上下文能力。测试内容包括生成网页、PPT和3D游戏。K3表现“大、慢、强、贵”——参数庞大、响应较慢但能力强,且成本较高(API费用达$15/百万token)。技术亮点包括KDA混合线性注意力和极致稀疏MoE架构,显著提升长文本处理效率。实测中,K3成功生成直播卖货图片、试卷、黑客帝国风格网页、数据仪表盘、游戏介绍PPT及3D太阳系模型,展现了强大的多任务处理能力,尤其在代码生成和内容策划方面表现突出。
HTML5地区自转代码
1 <!doctype html> 2 <meta charset="UTF-8"> 3 <html> 4 <body> 5 <!--创建canvas标签--> 6 <!--canvas标签中的宽高不能设置在stlye里面否则不好定位x.y--> 7 ...
1319



被折叠的 条评论
为什么被折叠?



