<img src=javascript:alert(String.fromCharCode(88,83,83))>
2017-09-21
&amp;lt;/div&amp;gt;&amp;lt;script&amp;gt;alert(&#39;XSS&#39;)&amp;
2017-09-21
</div><script>alert('XSS')</script><div>
2017-09-21
</div><script>alert('XSS')</script><div>
2017-09-21
</div></script><script>alert('XSS')</script>
2017-09-21
<body>
<div class="box1">box1
</div>
<div class="box2">box2
</div>
<div class="box3">box3</div>
</html>
<div class="box1">box1
</div>
<div class="box2">box2
</div>
<div class="box3">box3</div>
</html>
2017-09-20
div.box2{ height:50px;/*与width设置一致*/ width:100px; background:#9da; border-radius:50px 50px 0 0; float:left;
}
div.box3{ height:100px;width:200px;
background:#9da;border-radius:0 0 100px 100px;clear:both;
}
}
div.box3{ height:100px;width:200px;
background:#9da;border-radius:0 0 100px 100px;clear:both;
}
2017-09-20
爱心代码:
<style type="text/css">
div.box1{
height:50px;/*与width设置一致*/
width:100px;
background:#9da;
border-radius:50px 50px 0 0;
float:left;
}
<style type="text/css">
div.box1{
height:50px;/*与width设置一致*/
width:100px;
background:#9da;
border-radius:50px 50px 0 0;
float:left;
}
2017-09-20
已采纳回答 / 爱上慕婉清6262634
根据我的测试,background-clip这个属性是受到background-origin的限制。即background-clip默认值等同于background-origin设置的值。1,设置background-origin:border-box;则background-clip默认是border-box,可选padding-box和content-box。2,设置background-origin:padding-box;则background-clip默认是padding-box,可选conte...
2017-09-20
背景图(background-image)的默认起始位置是内边距(padding-box),而背景色(background-color)会延伸到边框所在的区域下层,即border-box。如果要实现半透明边框的话,要设置背景的绘制区域(background-clip)为padding-box
2017-09-20
</div><script>alert('---')</script>
2017-09-20
.wrapper > div:nth-of-type(2n+1),
.wrapper > p:nth-of-type(2n){
background: orange;
}
/*或者*/
.wrapper > div:nth-of-type(2n-1),
.wrapper > p:nth-of-type(2n){
background: orange;
}
/*或者*/
.wrapper > div:nth-of-type(odd),
.wrapper > p:nth-of-type(even){
background: orange;
}
.wrapper > p:nth-of-type(2n){
background: orange;
}
/*或者*/
.wrapper > div:nth-of-type(2n-1),
.wrapper > p:nth-of-type(2n){
background: orange;
}
/*或者*/
.wrapper > div:nth-of-type(odd),
.wrapper > p:nth-of-type(even){
background: orange;
}
2017-09-19