整合营销服务商

电脑端+手机端+微信端=数据同步管理

免费咨询热线:

CSS技巧:常用的几个CSS前端效果 更轻松的写页面

CSS技巧:常用的几个CSS前端效果 更轻松的写页面

页面需要一定的 CSS 基本功,虽然现在有很多成熟的框架如 bootstrap 等,我们轻松的就就可以做出一些页面效果。但是掌握每一个常见效果的写法还是很重要的,下面整理出一些常见的 CSS 前端效果,让你更轻松的写页面。

1、禁止选择文本

  1. body {

  2. -webkit-touch-callout: none;

  3. -webkit-user-select: none;

  4. -khtml-user-select: none;

  5. -moz-user-select: none;

  6. -ms-user-select: none;

  7. user-select: none;

  8. }

2、在可打印的网页中显示URLs

  1. @media print {

  2. a:after {

  3. content: " [" attr(href) "] ";

  4. }

  5. }

3、深灰色的点击渐变按钮

  1. .graybtn {

  2. -moz-box-shadow:inset 0px 1px 0px 0px #ffffff;

  3. -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;

  4. box-shadow:inset 0px 1px 0px 0px #ffffff;

  5. background:-webkit-gradient( linear, left top, left bottombottom, color-stop(0.05, #ffffff), color-stop(1, #d1d1d1) );

  6. background:-moz-linear-gradient( center top, #ffffff 5%, #d1d1d1 100% );

  7. filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#d1d1d1');

  8. background-color:#ffffff;

  9. -moz-border-radius:6px;

  10. -webkit-border-radius:6px;

  11. border-radius:6px;

  12. border:1px solid #dcdcdc;

  13. display:inline-block;

  14. color:#777777;

  15. font-family:arial;

  16. font-size:15px;

  17. font-weight:bold;

  18. padding:6px 24px;

  19. text-decoration:none;

  20. text-shadow:1px 1px 0px #ffffff;

  21. }

  22. .graybtn:hover {

  23. background:-webkit-gradient( linear, left top, left bottombottom, color-stop(0.05, #d1d1d1), color-stop(1, #ffffff) );

  24. background:-moz-linear-gradient( center top, #d1d1d1 5%, #ffffff 100% );

  25. filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#d1d1d1', endColorstr='#ffffff');

  26. background-color:#d1d1d1;

  27. }

  28. .graybtn:active {

  29. position:relative;

  30. top:1px;

  31. }

4、网页顶部盒阴影

  1. body:before {

  2. content: "";

  3. position: fixed;

  4. top: -10px;

  5. left: 0;

  6. width: 100%;

  7. height: 10px;

  8. -webkit-box-shadow: 0px 0px 10px rgba(0,0,0,.8);

  9. -moz-box-shadow: 0px 0px 10px rgba(0,0,0,.8);

  10. box-shadow: 0px 0px 10px rgba(0,0,0,.8);

  11. z-index: 100;

  12. }

5、在可点击的项目上强制手型

  1. a[href], input[type='submit'], input[type='image'], label[for], select, button, .pointer {

  2. cursor: pointer;

  3. }

6、CSS3 鲜艳的输入(边框渐变)

  1. input[type=text], textarea {

  2. -webkit-transition: all 0.30s ease-in-out;

  3. -moz-transition: all 0.30s ease-in-out;

  4. -ms-transition: all 0.30s ease-in-out;

  5. -o-transition: all 0.30s ease-in-out;

  6. outline: none;

  7. padding: 3px 0px 3px 3px;

  8. margin: 5px 1px 3px 0px;

  9. border: 1px solid #ddd;

  10. }

  11. input[type=text]:focus, textarea:focus {

  12. box-shadow: 0 0 5px rgba(81, 203, 238, 1);

  13. padding: 3px 0px 3px 3px;

  14. margin: 5px 1px 3px 0px;

  15. border: 1px solid rgba(81, 203, 238, 1);

  16. }

7、三角形列表项目符号

  1. ul {

  2. margin: 0.75em 0;

  3. padding: 0 1em;

  4. list-style: none;

  5. }

  6. li:before {

  7. content: "";

  8. border-color: transparent #111;

  9. border-style: solid;

  10. border-width: 0.35em 0 0.35em 0.45em;

  11. display: block;

  12. height: 0;

  13. width: 0;

  14. left: -1em;

  15. top: 0.9em;

  16. position: relative;

  17. }

8、内部CSS3 盒阴影

  1. #mydiv {

  2. -moz-box-shadow: inset 2px 0 4px #000;

  3. -webkit-box-shadow: inset 2px 0 4px #000;

  4. box-shadow: inset 2px 0 4px #000;

  5. }

9、外部CSS3 盒阴影

  1. #mydiv {

  2. -webkit-box-shadow: 0 2px 2px -2px rgba(0, 0, 0, 0.52);

  3. -moz-box-shadow: 0 2px 2px -2px rgba(0, 0, 0, 0.52);

  4. box-shadow: 0 2px 2px -2px rgba(0, 0, 0, 0.52);

  5. }

10、@font-face模板

  1. @font-face {

  2. font-family: 'MyWebFont';

  3. src: url('webfont.eot'); /* IE9 Compat Modes */

  4. src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */

  5. url('webfont.woff') format('woff'), /* Modern Browsers */

  6. url('webfont.ttf') format('truetype'), /* Safari, Android, iOS */

  7. url('webfont.svg#svgFontName') format('svg'); /* Legacy iOS */

  8. }

  9. body {

  10. font-family: 'MyWebFont', Arial, sans-serif;

  11. }

11、CSS3渐变模板

  1. #colorbox {

  2. background: #629721;

  3. background-image: -webkit-gradient(linear, left top, left bottombottom, from(#83b842), to(#629721));

  4. background-image: -webkit-linear-gradient(top, #83b842, #629721);

  5. background-image: -moz-linear-gradient(top, #83b842, #629721);

  6. background-image: -ms-linear-gradient(top, #83b842, #629721);

  7. background-image: -o-linear-gradient(top, #83b842, #629721);

  8. background-image: linear-gradient(top, #83b842, #629721);

  9. }

12、CSS3:全屏背景

  1. html {

  2. background: url('images/bg.jpg') no-repeat center center fixed;

  3. -webkit-background-size: cover;

  4. -moz-background-size: cover;

  5. -o-background-size: cover;

  6. background-size: cover;

  7. }

13、锚链接伪类

  1. a:link { color: blue; }

  2. a:visited { color: purple; }

  3. a:hover { color: red; }

  4. a:active { color: yellow; }

14、图片边框偏光

  1. img.polaroid {

  2. background:#000; /*Change this to a background image or remove*/

  3. border:solid #fff;

  4. border-width:6px 6px 20px 6px;

  5. box-shadow:1px 1px 5px #333; /* Standard blur at 5px. Increase for more depth */

  6. -webkit-box-shadow:1px 1px 5px #333;

  7. -moz-box-shadow:1px 1px 5px #333;

  8. height:200px; /*Set to height of your image or desired div*/

  9. width:200px; /*Set to width of your image or desired div*/

  10. }

15、通用媒体查询

  1. /* Smartphones (portrait and landscape) ----------- */

  2. @media only screen

  3. and (min-device-width : 320px) and (max-device-width : 480px) {

  4. /* Styles */

  5. }

  6. /* Smartphones (landscape) ----------- */

  7. @media only screen and (min-width : 321px) {

  8. /* Styles */

  9. }

  10. /* Smartphones (portrait) ----------- */

  11. @media only screen and (max-width : 320px) {

  12. /* Styles */

  13. }

  14. /* iPads (portrait and landscape) ----------- */

  15. @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {

  16. /* Styles */

  17. }

  18. /* iPads (landscape) ----------- */

  19. @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) {

  20. /* Styles */

  21. }

  22. /* iPads (portrait) ----------- */

  23. @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) {

  24. /* Styles */

  25. }

  26. /* Desktops and laptops ----------- */

  27. @media only screen and (min-width : 1224px) {

  28. /* Styles */

  29. }

  30. /* Large screens ----------- */

  31. @media only screen and (min-width : 1824px) {

  32. /* Styles */

  33. }

  34. /* iPhone 4 ----------- */

  35. @media only screen and (-webkit-min-device-pixel-ratio:1.5), only screen and (min-device-pixel-ratio:1.5) {

  36. /* Styles */

  37. }

  38. 16、跨浏览器透明

    1. .transparent {

    2. filter: alpha(opacity=50); /* internet explorer */

    3. -khtml-opacity: 0.5; /* khtml, old safari */

    4. -moz-opacity: 0.5; /* mozilla, netscape */

    5. opacity: 0.5; /* fx, safari, opera */

    6. }

    17、用CSS动画实现省略号动画

    1. .loading:after {

    2. overflow: hidden;

    3. display: inline-block;

    4. vertical-align: bottombottom;

    5. animation: ellipsis 2s infinite;

    6. content: "26"; /* ascii code for the ellipsis character */

    7. }

    8. @keyframes ellipsis {

    9. from {

    10. width: 2px;

    11. }

    12. to {

    13. width: 15px;

    14. }

    15. }

    18、制造模糊文本

    1. .blurry-text {

    2. color: transparent;

    3. text-shadow: 0 0 5px rgba(0,0,0,0.5);

    4. }

    19、包裹长文本 文本过长自动换行不会穿破盒子

    1. pre {

    2. whitewhite-space: pre-line;

    3. word-wrap: break-word;

    4. }

    20、背景渐变色

    1. button {

    2. background-image: linear-gradient(#5187c4, #1c2f45);

    3. background-size: auto 200%;

    4. background-position: 0 100%;

    5. transition: background-position 0.5s;

    6. }

    7. button:hover {

    8. background-position: 0 0;

    9. }

    21、内容可编辑(contenteditable="true")

    1. <ul contenteditable="true">

    2. <li>悼念遇难香港同胞 </li>

    3. <li>深圳特区30周年</li>

    4. <li>伊春空难</li>

    5. </ul>

    22、输入框改变placeholder字体颜色

    1. ::-webkit-input-placeholder {

    2. color: red;

    3. }

    4. :-moz-placeholder {

    5. color: red;

    6. }

    7. ::-moz-placeholder{

    8. color: red;

    9. }

    10. :-ms-input-placeholder {

    11. color: red;

    12. }

    作者:雅兮网

    来源:boke112导航

言:每当过节的时候,女朋友就抱怨我总是忘记给她买花,说程序不懂浪漫,这不我准备了几款爱心动画特效,打算当面向她表达一下。

第一款:html5通过canvas实现浪漫告白爱心动画特效

寓意:告白无须多么华丽的语言,一颗颗小的爱心汇聚成一颗真心,让你的另一半感受到浓浓的爱意。

代码难度系数★★★

新建index.html,复制以下代码保存在浏览器中打开即可。

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>canvas 心</title>

<style>
html, body {
  height: 100%;
  padding: 0;
  margin: 0;
  background: #000;
}
canvas {
  position: absolute;
  width: 100%;
  height: 100%;
}</style>
</head>
<body>

<canvas id="pinkboard"></canvas>

<script>
/*
 * Settings
 */
var settings={
  particles: {
    length:   500, // maximum amount of particles
    duration:   2, // particle duration in sec
    velocity: 100, // particle velocity in pixels/sec
    effect: -0.75, // play with this for a nice effect
    size:      30, // particle size in pixels
  },
};

/*
 * RequestAnimationFrame polyfill by Erik M?ller
 */
(function(){var b=0;var c=["ms","moz","webkit","o"];for(var a=0;a<c.length&&!window.requestAnimationFrame;++a){window.requestAnimationFrame=window[c[a]+"RequestAnimationFrame"];window.cancelAnimationFrame=window[c[a]+"CancelAnimationFrame"]||window[c[a]+"CancelRequestAnimationFrame"]}if(!window.requestAnimationFrame){window.requestAnimationFrame=function(h,e){var d=new Date().getTime();var f=Math.max(0,16-(d-b));var g=window.setTimeout(function(){h(d+f)},f);b=d+f;return g}}if(!window.cancelAnimationFrame){window.cancelAnimationFrame=function(d){clearTimeout(d)}}}());

/*
 * Point class
 */
var Point=(function() {
  function Point(x, y) {
    this.x=(typeof x !=='undefined') ? x : 0;
    this.y=(typeof y !=='undefined') ? y : 0;
  }
  Point.prototype.clone=function() {
    return new Point(this.x, this.y);
  };
  Point.prototype.length=function(length) {
    if (typeof length=='undefined')
      return Math.sqrt(this.x * this.x + this.y * this.y);
    this.normalize();
    this.x *=length;
    this.y *=length;
    return this;
  };
  Point.prototype.normalize=function() {
    var length=this.length();
    this.x /=length;
    this.y /=length;
    return this;
  };
  return Point;
})();

/*
 * Particle class
 */
var Particle=(function() {
  function Particle() {
    this.position=new Point();
    this.velocity=new Point();
    this.acceleration=new Point();
    this.age=0;
  }
  Particle.prototype.initialize=function(x, y, dx, dy) {
    this.position.x=x;
    this.position.y=y;
    this.velocity.x=dx;
    this.velocity.y=dy;
    this.acceleration.x=dx * settings.particles.effect;
    this.acceleration.y=dy * settings.particles.effect;
    this.age=0;
  };
  Particle.prototype.update=function(deltaTime) {
    this.position.x +=this.velocity.x * deltaTime;
    this.position.y +=this.velocity.y * deltaTime;
    this.velocity.x +=this.acceleration.x * deltaTime;
    this.velocity.y +=this.acceleration.y * deltaTime;
    this.age +=deltaTime;
  };
  Particle.prototype.draw=function(context, image) {
    function ease(t) {
      return (--t) * t * t + 1;
    }
    var size=image.width * ease(this.age / settings.particles.duration);
    context.globalAlpha=1 - this.age / settings.particles.duration;
    context.drawImage(image, this.position.x - size / 2, this.position.y - size / 2, size, size);
  };
  return Particle;
})();

/*
 * ParticlePool class
 */
var ParticlePool=(function() {
  var particles,
      firstActive=0,
      firstFree=0,
      duration=settings.particles.duration;
  
  function ParticlePool(length) {
    // create and populate particle pool
    particles=new Array(length);
    for (var i=0; i < particles.length; i++)
      particles[i]=new Particle();
  }
  ParticlePool.prototype.add=function(x, y, dx, dy) {
    particles[firstFree].initialize(x, y, dx, dy);
    
    // handle circular queue
    firstFree++;
    if (firstFree==particles.length) firstFree=0;
    if (firstActive==firstFree       ) firstActive++;
    if (firstActive==particles.length) firstActive=0;
  };
  ParticlePool.prototype.update=function(deltaTime) {
    var i;
    
    // update active particles
    if (firstActive < firstFree) {
      for (i=firstActive; i < firstFree; i++)
        particles[i].update(deltaTime);
    }
    if (firstFree < firstActive) {
      for (i=firstActive; i < particles.length; i++)
        particles[i].update(deltaTime);
      for (i=0; i < firstFree; i++)
        particles[i].update(deltaTime);
    }
    
    // remove inactive particles
    while (particles[firstActive].age >=duration && firstActive !=firstFree) {
      firstActive++;
      if (firstActive==particles.length) firstActive=0;
    }
    
    
  };
  ParticlePool.prototype.draw=function(context, image) {
    // draw active particles
    if (firstActive < firstFree) {
      for (i=firstActive; i < firstFree; i++)
        particles[i].draw(context, image);
    }
    if (firstFree < firstActive) {
      for (i=firstActive; i < particles.length; i++)
        particles[i].draw(context, image);
      for (i=0; i < firstFree; i++)
        particles[i].draw(context, image);
    }
  };
  return ParticlePool;
})();

/*
 * Putting it all together
 */
(function(canvas) {
  var context=canvas.getContext('2d'),
      particles=new ParticlePool(settings.particles.length),
      particleRate=settings.particles.length / settings.particles.duration, // particles/sec
      time;
  
  // get point on heart with -PI <=t <=PI
  function pointOnHeart(t) {
    return new Point(
      160 * Math.pow(Math.sin(t), 3),
      130 * Math.cos(t) - 50 * Math.cos(2 * t) - 20 * Math.cos(3 * t) - 10 * Math.cos(4 * t) + 25
    );
  }
  
  // creating the particle image using a dummy canvas
  var image=(function() {
    var canvas=document.createElement('canvas'),
        context=canvas.getContext('2d');
    canvas.width=settings.particles.size;
    canvas.height=settings.particles.size;
    // helper function to create the path
    function to(t) {
      var point=pointOnHeart(t);
      point.x=settings.particles.size / 2 + point.x * settings.particles.size / 350;
      point.y=settings.particles.size / 2 - point.y * settings.particles.size / 350;
      return point;
    }
    // create the path
    context.beginPath();
    var t=-Math.PI;
    var point=to(t);
    context.moveTo(point.x, point.y);
    while (t < Math.PI) {
      t +=0.01; // baby steps!
      point=to(t);
      context.lineTo(point.x, point.y);
    }
    context.closePath();
    // create the fill
    context.fillStyle='#ea80b0';
    context.fill();
    // create the image
    var image=new Image();
    image.src=canvas.toDataURL();
    return image;
  })();
  
  // render that thing!
  function render() {
    // next animation frame
    requestAnimationFrame(render);
    
    // update time
    var newTime=new Date().getTime() / 1000,
        deltaTime=newTime - (time || newTime);
    time=newTime;
    
    // clear canvas
    context.clearRect(0, 0, canvas.width, canvas.height);
    
    // create new particles
    var amount=particleRate * deltaTime;
    for (var i=0; i < amount; i++) {
      var pos=pointOnHeart(Math.PI - 2 * Math.PI * Math.random());
      var dir=pos.clone().length(settings.particles.velocity);
      particles.add(canvas.width / 2 + pos.x, canvas.height / 2 - pos.y, dir.x, -dir.y);
    }
    
    // update and draw particles
    particles.update(deltaTime);
    particles.draw(context, image);
  }
  
  // handle (re-)sizing of the canvas
  function onResize() {
    canvas.width=canvas.clientWidth;
    canvas.height=canvas.clientHeight;
  }
  window.onresize=onResize;
  
  // delay rendering bootstrap
  setTimeout(function() {
    onResize();
    render();
  }, 10);
})(document.getElementById('pinkboard'));</script>

</body>
</html>

第二款:html5通过canvas实现爱心气球上升动画特效

寓意:将想说的话打开一颗颗的爱心气球上,随着气球不断的升空,让整个氛围可更加地缠绵,看到此处可以有感动的泪水。

代码难度系数★★★

新建index.html,复制以下代码保存在浏览器中打开即可。

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>情人节快乐:)</title>

<style>
canvas {
	position: absolute;
	top: 0;
	left: 0;
}</style>
</head>
<body>
<canvas id=c></canvas>

<script>
var w=c.width=window.innerWidth,
		h=c.height=window.innerHeight,
		ctx=c.getContext( '2d' ),
		
		opts={
			phrases: [ "Don't die\nit's not hard", "You're the Best", "Every day,\nYou're beautiful", "Every occasion,\nYou're clever", "A world without You?\nNah", "Keep kicking ass", "You're better than them,\nwhoever they are", "You're just amazing", "You are,\ntherefore I am", "Nothing better than You \ncould have happened to the world" ],
			balloons: 10,
			baseVelY: -1,
			addedVelY: -1,
			baseVelX: -.25,
			addedVelX: .5,
			baseSize: 20,
			addedSize: 10,
			baseSizeAdder: 2,
			addedSizeAdder: 2,
			baseIncrementer: .01,
			addedIncrementer: .03,
			baseHue: -10,
			addedHue: 30,
			font: '15px Verdana'
		},
		
		cycle=0,
		balloons=[];

ctx.font=opts.font;

function Balloon(){
	this.reset();
}
Balloon.prototype.reset=function(){
	
	this.size=opts.baseSize + opts.addedSize * Math.random();
	this.sizeAdder=opts.baseSizeAdder + opts.addedSizeAdder * Math.random();
	this.incrementer=opts.baseIncrementer + opts.addedIncrementer * Math.random();
	
	this.tick=0;
	
	this.x=Math.random() * w;
	this.y=h + this.size;
	
	this.vx=opts.baseVelX + opts.addedVelX * Math.random();
	this.vy=opts.baseVelY + opts.addedVelY * Math.random();
	
	this.color='hsla(hue,70%,60%,.8)'.replace( 'hue', opts.baseHue + opts.addedHue * Math.random() );
	this.phrase=opts.phrases[ ++cycle % opts.phrases.length ].split( '\n' );
	this.lengths=[];
	
	for( var i=0; i < this.phrase.length; ++i )
		this.lengths.push( -ctx.measureText( this.phrase[ i ] ).width / 2 );
}
Balloon.prototype.step=function(){
	
	this.tick +=this.incrementer;
	this.x +=this.vx;
	this.y +=this.vy;
	
	var size=this.size + this.sizeAdder * Math.sin( this.tick );
	
	ctx.lineWidth=size / 40;
	ctx.strokeStyle='#eee';
	ctx.beginPath();
	ctx.moveTo( this.x, this.y - 2 );
	ctx.lineTo( this.x, this.y + size );
	ctx.stroke();
	ctx.fillStyle=this.color;
	
	ctx.translate( this.x, this.y );
	ctx.rotate( Math.PI / 4 );
	//ctx.fillRect( -size / 2, -size / 2, size / 2, size / 2 );
	ctx.beginPath();
	ctx.moveTo( 0, 0 );
	ctx.arc( -size / 2, -size / 2 + size / 4, size / 4, Math.PI / 2, Math.PI * 3 / 2 );
	ctx.arc( -size / 2 + size / 4, -size / 2, size / 4, Math.PI, Math.PI * 2 );
	ctx.lineTo( 0, 0 );
	ctx.fill();
	ctx.rotate( -Math.PI / 4 );
	ctx.translate( -this.x, -this.y );
	
	ctx.translate( this.x, this.y + size + 15 );
	ctx.scale( size / this.size, size / this.size );
	ctx.fillStyle='#eee';
	for( var i=0; i < this.phrase.length; ++i )
		ctx.fillText( this.phrase[ i ], this.lengths[ i ], i * 15 );
	ctx.scale( this.size / size, this.size / size );
	ctx.translate( -this.x, -( this.y + size + 15 ) );
	
	if( this.y < -size * 3 )
		this.reset();
	
}

function anim(){
	
	window.requestAnimationFrame( anim );
	
	ctx.fillStyle='#222';
	ctx.fillRect( 0, 0, w, h );
	
	if( balloons.length < opts.balloons && Math.random() < .01 )
		balloons.push( new Balloon );
	
	for( var i=0; i < balloons.length; ++i )
		balloons[ i ].step();
}
anim();</script>

</body>
</html>

第三款:jQuery+css3实现爱心雨动画特效

寓意:天空中下起了爱心雨,衬托的房间变得温暖,也让整个场景都变得温馨无比,想必此时可以有一个大大的拥抱。

代码难度系数★★★

代码有image、js和html,所以不好贴出来,有需要的朋友直接问我要吧。

总结:程序员的工作本身就很枯燥,特定找了几个好看的特效拿出来和大家分享,希望大家能够快乐每一天,上述代码亲测可用,欢迎点赞收藏。

《完》

大家如果喜欢的话麻烦点赞、关注、转发,谢谢大家。

果图

各位看官好!知了的看门道、不知道的评论个热闹

今天给大家带来的是:企业级jQuery响应式全屏背景图片导航菜单特效源码

正如效果图所示!炫酷到没朋友啊!

代码过长需要文档版源码来我的前端群581549454,已上传到群文件

废话不多说,上源码!

CSS源码1:

/* http://meyerweb.com/eric/tools/css/reset/

v2.0 | 20110126

License: none (public domain)

*/

html, body, div, span, applet, object, iframe,

h1, h2, h3, h4, h5, h6, p, blockquote, pre,

a, abbr, acronym, address, big, cite, code,

del, dfn, em, img, ins, kbd, q, s, samp,

small, strike, strong, sub, sup, tt, var,

b, u, i, center,

dl, dt, dd, ol, ul, li,

fieldset, form, label, legend,

table, caption, tbody, tfoot, thead, tr, th, td,

article, aside, canvas, details, embed,

figure, figcaption, footer, header, hgroup,

menu, nav, output, ruby, section, summary,

time, mark, audio, video {

margin: 0;

padding: 0;

border: 0;

font-size: 100%;

font: inherit;

vertical-align: baseline;

}