@charset "utf-8";

/* 样式重置 */

*, *:before, *:after {
	margin: 0;
    padding: 0;
	border: 0;
    box-sizing: border-box;
    }


	


	/* Default links */

section a:link, section a:visited {
	text-decoration : none;
	color : #900b09;
	background : transparent; 
	border-bottom: 1px solid #900b09;
	}

section a:hover {
	text-decoration : none;
	color: #ff0000;
	background : transparent; 
	border-bottom: 1px solid #ff0000;
	}

section a:active {
	text-decoration : none;
	color : #ff0000;
	background : transparent;  
	}





html {
    font-family: "Segoe UI", -apple-system, Arial, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	overflow-y: scroll;
	-ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;  /* 防止横屏文本缩放 */
    }

article, aside, details, figcaption, figure, footer, header, main, menu, nav, section {
    display: block;  /* 确保 HTML5 元素正确显示 */
    }

button, input, select, textarea, optgroup {
    font: inherit;  /* 表单元素继承字体，保持一致性 */
    }

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    }

h1 { font-size: 42px; }
h2 { font-size: 30px; }

@media screen and (min-width: 320px) and (max-width: 720px) {
h1 { font-size: 30px; }
h2 { font-size: 25px; }
}

section {
	width: 100%;
	padding: 24px 0 32px 0;
	border-top: 1px solid #E1E1E1;
    }

section:nth-last-of-type(1) {
	border-bottom: 1px solid #E1E1E1;
}

legend {
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: .35em .625em .75em;
}

.demo-input, .demo-input-button {
	border: 1px solid #888;
	border-radius: 3px;
	padding: 5px;
	margin-top: 5px;
}

.demo-input-button:hover {
	background-color: #E5E5E5;
}

.demo-input-text {
	border: 1px solid #888;
	border-radius: 3px;
	padding: 1px 2px;
}

svg {
	margin-top: 0px;
}

kbd {
  border-radius: 2px;
  padding: 2px 4px;
  border: 1px solid black;
  font-family: Consolas, '微软雅黑', Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

.deprecated, .not-supported {
	color: #e80000;
}

section.intro, section.info, section.warning, section.note, section.tip, section.related-pages, 
section > .intro, section > .info, section > .warning, section > .note, section > .tip, section > .important
{
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 16px;
  width: auto;
  border: 0;
  padding: 25px 16px 25px 16px;
}

section.related-pages {
	padding-bottom: 30px;
}

.intro {
    background-color: #D9EEE1;
}

section.intro {
    background-color: #D9EEE1;
	margin-top: 0px;
	border: 0;
}

.info {
	background-color: #D9EEE1;
}

div.info {
    margin-top: 20px;
}

div.info *:first-child, .intro:first-child {
    margin-top: 0;
}

.warning {
	background-color: #ffdddd;
}

.important {
	background-color: #ffdddd;
}

section.note, section > .note {
    background-color: #ffffcc;
}

section.tip, section > .tip {
    background-color: #EAF6FF;
}

section.tip h2, div.tip h3 {
    color: #ff9955;
}

section.related-pages {
    background-color: #F3ECEA;
    border-bottom: 0;
}

div.warning, div.note, div.tip {
    padding: 25px 16px;
	margin-top: 15px;
}

div.warning *:first-child, div.note *:first-child, div.tip *:first-child, div.info *:first-child {
  margin-top: 0;
}

.intro + section, .note + section {
	border-top: 0;
}


p.note span:first-child, p.important span:first-child, p.tip span:first-child, p.warning span:first-child, p.inherited, p.inherited span, p.gototop, .html5_new_note span
		{
		font-weight: bold;
		}

h3.tip {color: #ff9955;}

p.tip span:first-child
		{
		color:#ff9955;
		}

p.important span:first-child
		{
		color:#dd0000;
		}

/*
div.warning:last-child {margin-bottom: 0;}

div.tip h3, div.note h3:first-child, div.warning h3, div.info h3 {margin-top: 0;}

div.tip pre, div.note pre {width: 95%;}

div.tip:first-child, div.note:first-child, div.info:first-child {margin-top: 0;}

div.tip:last-child, div.note:last-child, div.info:last-child {margin-bottom: 0;}
*/



section.intro p {
    font-size: 18px;
}

section.intro p:first-child {
	margin-top: 0;
}

section h2 {
	margin-bottom: 20px;
}

section h3, section h4 {
	margin-top: 20px;
	margin-bottom: 15px;
	font-size: 16px;
    font-weight: bold;
    }

p {
    margin: 15px 0;
    }

p:first-child {
    margin-top: 0;
    }

p:last-child {
    margin-bottom: 0;
    }

section > p {
    font-size: 16px;
}

/*
section > p:first-of-type {
    margin-top: 0px;
}
*/

section ul, section ol {
    margin: 15px 0 0 40px;
    line-height: 1.6;
}

em {
    font-style: normal;
    font-weight: bold;
}

p.chinese span:first-child
		{
		color:#0000ff;
		}

p code, li code, table code, h3 code, dl code
		{
		color:crimson;
		background-color:rgba(222,222,222,0.3);
		padding-left:4px;
		padding-right:4px;
		font-family: Consolas, "Courier New", Courier, monospace;
		}

mark
		{
		color:darkslateblue;
		background-color:rgba(222,222,222,0.3);
		padding-left:4px;
		padding-right:4px;
		font-family: "Segoe UI", -apple-system, Arial, Verdana, sans-serif;
		/*font-family: Consolas, "Courier New", Courier, monospace;*/
		}

section > img {
	margin-top:15px;
	max-width: 100%;
	display: block;
	}

section > img:first-child, section > img.illustration:first-child {
	margin-top:0;
	}

img.illustration {
	display: block;
	margin:15px auto 0 auto;
	max-width: 100%;
	/* box-shadow: 0 2px 6px 0 hsla(0, 0%, 0%, 0.2); */
	}

div.p100 {
width: 100%;
}

div.p50 {
width: 50%;
float: left;
}

div.p33 {
width: 33%;
float: left;
}

div.p25 {
width: 25%;
float: left;
}

img.img-center {
display: block;
margin: 15px auto 0 auto;
}




/* ----------------------------------- 表格 ----------------------------------- */

table:is(.ref, .definition-usage, .technical-details, .parameter, .attribute-value, .property-value) {
	margin-top:15px;
	border-collapse:collapse;
	border:1px solid #ccc;
	width:100%;
	font-size: 16px;
	}

table:is(.ref, .definition-usage, .technical-details, .parameter, .attribute-value, .property-value) th {
	vertical-align:baseline;
	text-align:left;
	padding:15px;
	border:1px solid #ddd;
	}

table:is(.ref, .definition-usage, .technical-details, .parameter, .attribute-value, .property-value) td {
	vertical-align:text-top;
	padding:15px;
	border:1px solid #ddd;
	}

table:is(.ref, .definition-usage, .technical-details, .parameter, .attribute-value, .property-value) tr:nth-child(odd) {
	background-color:#fff;
}

table:is(.ref, .definition-usage, .technical-details, .parameter, .attribute-value, .property-value) tr:nth-child(even) {
	background-color:#F5F5F5;
}

td h3 {
	font-size: 16px;
}

td p {
	margin:0 0 2px 0;
	line-height: 1.5;
	}

td mark {
    font-family: inherit;
    color: red;
    background-color: transparent;
}

td pre {
	width:auto;
	background-color:transparent;
	}

td > ul, td > li {
	list-style-type:none;

	}

td > ul {
    margin: 0;
}

td em
	{
	color:#0000ff;
	font-weight:normal;
	}

ul.listintable {
	margin:20px;
	}

ul.listintable:first-child {
	margin-top:0;
	}

ul.listintable:last-child {
	margin-bottom:0;
	}

ul.listintable li{
	list-style-type:disc;
	}

.no_wrap {white-space:nowrap;}

.table_value {color:#0F93D2;}

.cell-dark {
	background-color: #3f3f3f;
	color: #fff;
}



/* ----------------------------------- dataintable ----------------------------------- */

table.dataintable {
	margin-top:15px;
	border-collapse:collapse;
	border:1px solid #ccc;
	width:100%;
	font-size: 16px;
	}

table.dataintable th {
	vertical-align:baseline;
	text-align:left;
	padding:15px;
	border:1px solid #ddd;
	}

table.dataintable td {
	vertical-align:text-top;
	padding:15px;
	border:1px solid #ddd;
	}

table.dataintable tr:nth-child(odd) {
	background-color:#fff;
}

table.dataintable tr:nth-child(even) {
	background-color:#F5F5F5;
}



	/* ----------------------------------- ref ----------------------------------- */

.ref {
	margin-top:15px;
	}

.ref th {
	background-color:#fff;
	border:1px solid #ddd;
	}

.ref td {
	border:1px solid #ddd;
	}

.ref tr:nth-child(odd) {
	background-color:#fff;
}

.ref tr:nth-child(even) {
	background-color:#F5F5F5;
}



	/* ----------------------------------- definition-usage ----------------------------------- */

table.definition-usage {
	margin-top:15px;
}



	/* ----------------------------------- technical-details ----------------------------------- */

table.technical-details {
	margin-top:15px;
}



	/* ----------------------------------- parameter ----------------------------------- */

table.parameter, table.attribute-value, table.property-value {
	margin-top:15px;
}



	/* ----------------------------------- browser-support ----------------------------------- */

table.browser-support {
	margin-top:15px;
	border-collapse:collapse;
	box-sizing: border-box;
	width: 100%;
}

table.browser-support tr:nth-child(odd) {
	background-color:#fff;
}

table.browser-support tr:nth-child(even) {
	background-color:#F5F5F5;
}

table.browser-support tr:first-child {
	height: 86px;
	font-weight: bold;
	padding: 0;
}

table.browser-support td, table.browser-support th {
	width:86px;
	padding: 15px;
	line-height: 1.5;
	vertical-align: middle;
	border:1px solid #ddd;
	text-align:center;
}

table.browser-support tr:first-child th {
	background-repeat: no-repeat;
	background-position: center;
	text-indent: -9999px;
}

table.browser-support tr:first-child th.bsTh {
	text-indent: 0;
}

table.browser-support td.bsTag {
	font-size: 18px;
	font-weight: bold;
	text-align: left;
}

table.browser-support .bsIE {
	background-image: url('/ui2017/compatible_ie.png');
}

table.browser-support .bsEdge {
	background-image: url('/ui2017/compatible_edge.png');
}

table.browser-support .bsFirefox {
	background-image: url('/ui2017/compatible_firefox.png');
}

table.browser-support .bsChrome {
	background-image: url('/ui2017/compatible_chrome.png');
}

table.browser-support .bsSafari {
	background-image: url('/ui2017/compatible_safari.png');
}

table.browser-support .bsOpera {
	background-image: url('/ui2017/compatible_opera.png');
}

table.browser-support .bsNoIE {
	background-image: url('/ui2017/incompatible_ie.png');
}

table.browser-support .bsNoFirefox {
	background-image: url('/ui2017/incompatible_firefox.png');
}

table.browser-support .bsNoChrome {
	background-image: url('/ui2017/incompatible_chrome.png');
}

table.browser-support .bsNoSafari {
	background-image: url('/ui2017/incompatible_safari.png');
}

table.browser-support .bsNoOpera {
	background-image: url('/ui2017/incompatible_opera.png');
}



	/* ----------------------------------- browsersupport ----------------------------------- */
table.browsersupport td
	{
		text-align:center;
	}

#jsref table.browsersupport td, #tags table.browsersupport td, #cssref table.browsersupport td
	{
		width:20%;
	}

#jsref table.browsersupport th, #tags table.browsersupport th, #cssref table.browsersupport th
	{
		color:#333333;
		font-weight:400;
	}

#jsref table.browsersupport, #tags table.browsersupport, #cssref table.browsersupport
	{
		width:70%;
	}

table.browsersupport .bsIE {
	background-image: url('/ui2017/compatible_ie.png');
}

table.browsersupport .bsFirefox {
	background-image: url('/ui2017/compatible_firefox.png');
}

table.browsersupport .bsChrome {
	background-image: url('/ui2017/compatible_chrome.png');
}

table.browsersupport .bsSafari {
	background-image: url('/ui2017/compatible_safari.png');
}

table.browsersupport .bsOpera {
	background-image: url('/ui2017/compatible_opera.png');
}

table.browsersupport .bsNoIE {
	background-image: url('/ui2017/incompatible_ie.png');
}

table.browsersupport .bsNoFirefox {
	background-image: url('/ui2017/incompatible_firefox.png');
}

table.browsersupport .bsNoChrome {
	background-image: url('/ui2017/incompatible_chrome.png');
}

table.browsersupport .bsNoSafari {
	background-image: url('/ui2017/incompatible_safari.png');
}

table.browsersupport .bsNoOpera {
	background-image: url('/ui2017/incompatible_opera.png');
}

table.browsersupport .bsPreIE {
	background-image: url('/i/precompatible_ie.gif');
}

table.browsersupport .bsPreFirefox {
	background-image: url('/i/precompatible_firefox.gif');
}

table.browsersupport .bsPreChrome {
	background-image: url('/i/precompatible_chrome.gif');
}

table.browsersupport .bsPreSafari {
	background-image: url('/i/precompatible_safari.gif');
}

table.browsersupport .bsPreOpera {
	background-image: url('/i/precompatible_opera.gif');
}

table.browsersupport {
	margin-top:15px;
	border-collapse:collapse;
}

table.browsersupport td {
	padding: 0;
	height: 86px;
	width:86px;
	vertical-align: middle;
	background:#fdfcf8 no-repeat center;
	border:1px solid #ddd;
}

table.browsersupport .browser_version td {
	padding: 0;
	height: 36px;
	vertical-align: middle;
	text-align: center;
	background-color:#F5F5F5;
	border:1px solid #ddd;
}

table.browsersupport td.bsProperty
		{
		font-family: courier new;
		white-space: nowrap;
		width:20%;
		}

table.browsersupport th {
	padding: 0;

	height: 36px;
	vertical-align: middle;
	text-align: center;
	background-color:#F5F5F5;
	border:1px solid #ddd;
	
}




section.example dl, section.toc dl, dl.toc	{
	margin: 10px 0 0 0;
	}

section.example dt, section.toc dt, dl.toc dt	{
	margin:15px 0 5px 0;
	}

section.example dd, section.toc dd, dl.toc dd	{
	margin:0;
	}


dl.define
		{
		margin: 10px 0 0 0;
		}

dl.define dt
		{
		margin:15px 0 3px 0;
		font-weight:bold;
		color:#0479A7;
		}

dl.define dd
		{
		margin:10px 0 0 10px;
		line-height: 150%;
		}




/* Code Color */

pre
    {
    width:100%;
    margin: 15px 0 0 0;
    padding: 20px;
    border: 1px solid #ddd;
    background: #fffefc;
    line-height:1.5;
    font-family:Consolas, '微软雅黑', 'Source Code Pro', Menlo, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace, PingFangSC-Regular, '宋体';
    overflow-x:auto;
    white-space: pre-wrap;
	word-wrap: break-word;
	overflow-wrap: break-word;
    box-sizing: border-box;
    }

section pre[class*="language-"]
    {
	width:100%;
    white-space: pre-wrap;
	word-wrap: break-word;
	overflow-wrap: break-word;
	overflow-x:auto;
	}

pre.err {
    border-left: 4px solid #f44336;
    border-color: #f44336;
    }

pre.cmdline
    {
    color: #ffffff;
    background: #000000;
    border: 0;
    }

table pre {
	width:auto;
	margin:0;
	padding:0;
	border:0;
	background-color:transparent;
    }

pre mark
    {
    font-weight: bold;
    background-color: transparent;
    color: inherit;
    }

pre[class*="language-"] i {font-style: italic;}




/* Nav List */

ul.list-ref {
    margin: 20px -8px 0 -8px;
    font-size: 0;
    }

ul.list-ref li {
    cursor:pointer;
    display:inline-block;
    padding: 8px 8px;
    text-align: center;
    vertical-align: middle;
    font-size: 16px;
    line-height: 150%;
    width: 25%;
    }

ul.list-ref li a {
    color: #000;
    background-color:#E7E9EB;
    border-radius:5px;
    text-decoration: none;
    display: block;
    border: 0px solid #ccc;
    padding: 20px 0 20px 0;
    transition: background-color 0.3s ease;
    }

ul.list-ref li a:hover {
    color: #fff;
    background-color: #000;
    }

@media screen and (min-width: 360px) and (max-width: 539px) {
    ul.list-ref li {
    width: 100%;
    }
}

@media screen and (min-width: 540px) and (max-width: 604px) {
    ul.list-ref li {
    width: 50%;
    }
}

@media screen and (min-width: 605px) and (max-width: 1399px) {
    ul.list-ref li {
    width: 33%;
    }
}





section ul.example-list {
list-style-type: none;
margin: 15px 0 0 0;
}

section ul.example-list li {
border-bottom: 1px solid #ccc;
}

section ul.example-list li:last-child {
border-bottom: none;
}

ul.example-list li a {
color: #000;
border: none;
display: block;
width: 100%;
padding: 10px 20px;
background-color: #f1f1f1;
box-sizing: border-box;
}

ul.example-list li a:hover {
background-color: #E1E1E1;
transition: background-color 0.3s ease-in;
}




/* TIY Button */

p.tiy {
    margin-top:15px;
	margin-bottom: 10px;
	display:inline-block;
	font-size: 14px;
}

p.tiy a, p.btn-blue a, td a.tiy {
	display:inline-block;
	outline:0;
	padding:8px 18px;
	vertical-align:middle;
	overflow:hidden;
	text-decoration:none;
	color:#fff;
	background-color:#e9686b;
	text-align:center;
	transition:.2s ease-out;
	cursor:pointer;
	white-space:nowrap;
	box-shadow:0px 2px 6px rgba(0,0,0,0.12), 0px 1px 2px rgba(0,0,0,0.24);
	font-family:'微软雅黑';
	border-radius:2px;
	border:0px;
    }

td a.tiy {
    margin: 0;
	padding: 1px 10px;
	font-size: 14px;
}

p.tiy:last-child {
	margin-bottom:0px;
    }

p.tiy a:link, p.tiy a:visited, td a.tiy:link, td a.tiy:visited {
	color:#fff;
	text-decoration:none;
	}

p.tiy a:hover, td a.tiy:hover {
	background-color:#ba3537;
	color:#fff;
	text-decoration:none;
	}

p.tiy a:active {
	color:#fff;
	text-decoration:none;
	}

p.btn-blue a {
	background-color:#2196f3;
	margin: 5px 0 0 0;
    }

p.btn-blue a:hover {
	background-color:#0d8bf2;
	color:#fff;
	text-decoration:none;
	}




.footer-container a {
	color: #777;
	font-size: 12px;
	margin: 0 5px;
}
