Skip to content

Instantly share code, notes, and snippets.

View hashplus's full-sized avatar
🇨🇳

p(^-^q) hashplus

🇨🇳
  • CN
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
.outer{
display:flex;
height:300px;
background-color: green;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
body{
margin:0;
}
<style id="jsbin-css">
body {
padding: 0;
margin: 0;
text-align: center;
}
.wrapper {
margin: 30px;
width: 450px;
border: 1px solid red;
Default style sheet for HTML 4
This appendix is informative, not normative.
This style sheet describes the typical formatting of all HTML 4 ([HTML4]) elements based on extensive research into current UA practice. Developers are encouraged to use it as a default style sheet in their implementations.
The full presentation of some HTML elements cannot be expressed in CSS 2.1, including replaced elements ("img", "object"), scripting elements ("script", "applet"), form control elements, and frame elements.
For other elements, the legacy presentation can be described in CSS but the solution removes the element. For example, the FONT element can be replaced by attaching CSS declarations to other elements (e.g., DIV). Likewise, legacy presentation of presentational attributes (e.g., the "border" attribute on TABLE) can be described in CSS, but the markup in the source document must be changed.
<style id="jsbin-css">
body {
padding: 0;
margin: 0;
text-align: center;
}
.wrapper {
margin: 30px;
width: 450px;
border: 1px solid red;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
div,
p,
body {
padding: 0;
<!DOCTYPE html>
<html>
<head>
<script src="http://cdn.staticfile.org/modernizr/2010.07.06dev/modernizr.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<canvas id="canvas" width=600 height=400></canvas>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<script src="http://cdn.staticfile.org/modernizr/2010.07.06dev/modernizr.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<canvas id="canvas" width=600 height=400></canvas>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
.outer{
width:300px;
height:300px;
background-color: #fff;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
.outer{
width:300px;
height:300px;
background-color: #2d2d2d;