fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.com)</title> <style> #myDIV { border: 1px solid black; /* Firefox */ -moz-column-count: 3; -moz-column-rule: 15px outset red; /* Chrome, Safari, Opera */ -webkit-column-rule: 15px outset red; -webkit-column-count: 3; -webkit-animation: mymove 5s infinite; /* Standard syntax */ column-count: 3; column-rule: 15pxpx outset red; animation: mymove 5s infinite; } /* Chrome, Safari, Opera */ @-webkit-keyframes mymove { 50% {-webkit-column-rule-color: blue;} } /* Standard syntax */ @keyframes mymove { 50% { -moz-column-rule-color: blue; /* Firefox */ column-rule-color: blue; } } </style> </head> <body> <p>column-rule-color 属性支持动画效果。</p> <p><b>注意:</b>Internet Explorer 9 及更早 IE 版本不支持 CSS 动画。</p> <p>逐步改变列之间的颜色规则,从红到蓝:<p> <div id="myDIV"> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. </div> </body> </html>
运行结果