首 页
网络学院
视频教程
资源下载
HOT
实例教程
图文教程
专题中心
学习社区
繁體中文
当前位置:
首页
>
图文教程
>
网页制作
>
CSS样式表
> CSS和“★”字符制做的中国国旗实现代码
CSS样式表
有趣的Unicode CSS类命名方式
调整CSS类型的顺序改变链接翻滚
CSS实现网页中的隔行换色代码
巧妙运用CSS立刻改变鼠标的样式
CSS教程,CSS固定表头的HTML表格
CSS教程,让网页对搜索引擎更友好
WEB标准,Web前端工程师定位浅谈
CSS配合JavaScript做酷的动态页面效果
WEB标准,Web前端开发工程师必备技术列表
用CSS制作Alpha滤镜测试板
非常流行的所谓的气泡窗口
CSS教程:li和ul标签用法举例
无延迟翻滚的图形与CSS混合风格按钮
浏览器Quirksmode模式与CSSCompat模式
CSS布局实例:上中下三行,中间自适应
CSS初学者应该保持的一种心态
基本的页面设计元素布局比例
DIV CSS常见错误汇总
如何用CSS让文字居于div的底部
从A页面连接到B页面后并直接把B页面的隐藏层显示
No.
«
‹
8
9
10
11
›
»
技术文章搜索
关键字
CSS样式表 中的 CSS和“★”字符制做的中国国旗实现代码
出处:
互联网
整理:
软晨网(RuanChen.com)
发布:
2010-01-10
浏览: 69 ::
收藏到网摘: n/a
优秀的CSS 框架整理
基于firebug的firefox扩展 css usage
在网上看见 某位牛人用CSS做的红旗 就是很牛!
上图先看:
<html> <head> <title>CSS中国国旗</title> <style type="text/css"> .all{ background-color:red; width:960; height=640; } .five{ background-color:red; width:480; height=320; } .big{ position:absolute; background-color:red; margin-top:64px; margin-left:64px; color:yellow; font-size:192px; } .small{ position:absolute; background-color:red; color:yellow; font-size:64px; } .s1{ margin-top:32px; margin-left:288px; filter:progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand',M11=0.6565,M12=0.7543,M21=-0.7543,M22=0.6565); } .s2{ margin-top:96px; margin-left:352px; filter:progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand',M11=0.8978,M12=0.4404,M21=-0.4404,M22=0.8978); } .s3{ margin-top:192px; margin-left:352px; filter:progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand',M11=0.9994,M12=0.0359,M21=-0.0359,M22=0.9994); } .s4{ margin-top:256px; margin-left:288px; filter:progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand',M11=0.9357,M12=-0.3528,M21=0.3528,M22=0.9357); } </style> </head> <body> <div class="all"> <div class="five"> <div class="big">★</div> <div class="small s1">★</div> <div class="small s2">★</div> <div class="small s3">★</div> <div class="small s4">★</div> </div> </div> </body> </html> 第2种代码,全部镶嵌在“<body>..</body>”网页标签里: <div style="background-color:red;width:960;height=640;"> <div style="background-color:red;width:480;height=320;"> <div style="z-index:2;position:absolute;background-color:red;margin-top:64px;margin-left:64px;color:yellow;font-size:192px;">★</div> <div style="z-index:2;position:absolute;background-color:red;margin-top:32px;margin-left:288px;color:yellow;font-size:64px;filter:progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand',M11=0.6565,M12=0.7543,M21=-0.7543,M22=0.6565);">★</div> <div style="z-index:2;position:absolute;background-color:red;margin-top:96px;margin-left:352px;color:yellow;font-size:64px;filter:progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand',M11=0.8978,M12=0.4404,M21=-0.4404,M22=0.8978);">★</div> <div style="z-index:2;position:absolute;background-color:red;margin-top:192px;margin-left:352px;color:yellow;font-size:64px;filter:progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand',M11=0.9994,M12=0.0359,M21=-0.0359,M22=0.9994);">★</div> <div style="z-index:2;position:absolute;background-color:red;margin-top:256px;margin-left:288px;color:yellow;font-size:64px;filter:progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand',M11=0.9357,M12=-0.3528,M21=0.3528,M22=0.9357);">★</div> </div> </div>
提示:您可以先修改部分代码再运行
优秀的CSS 框架整理
基于firebug的firefox扩展 css usage
评论 (0)
All
登陆
还没注册?