input[type="text"]:read-write{
border:2px solid red;
}
border:2px solid red;
}
2017-06-09
textarea:read-only{
border: 1px solid #ccc;
height: 50px;
resize: none;
background: #eee;
}
border: 1px solid #ccc;
height: 50px;
resize: none;
background: #eee;
}
2017-06-08
::selection{
background: orange;
color: white;
}
::-moz-selection{
background: orange;
color: white;
}
background: orange;
color: white;
}
::-moz-selection{
background: orange;
color: white;
}
2017-06-08
input[type="radio"]:checked + span {
opacity: 1;
}
opacity: 1;
}
2017-06-08
input[type="submit"]:disabled {
background: #eee;
border-color: #eee;
color: #ccc;
}
background: #eee;
border-color: #eee;
color: #ccc;
}
2017-06-08
div {
margin: 30px;
}
input[type="text"]:enabled{
border: 1px solid #f36;
box-shadow: 0 0 5px #f36;
}
input[type="text"]:disabled{
box-shadow: none;
}
margin: 30px;
}
input[type="text"]:enabled{
border: 1px solid #f36;
box-shadow: 0 0 5px #f36;
}
input[type="text"]:disabled{
box-shadow: none;
}
2017-06-08
由黑色转为渐变的过度 可以么
transition: all .3s ease-out
background-color:#232423;
hover:
background-image:linear-gradient(to right,#FF7D8C,#FF1033);
transition: all .3s ease-out
background-color:#232423;
hover:
background-image:linear-gradient(to right,#FF7D8C,#FF1033);
2017-06-08
li {
background: green;
padding: 10px;
margin-bottom: 5px;
}
li:only-child {
background: orange;
}
background: green;
padding: 10px;
margin-bottom: 5px;
}
li:only-child {
background: orange;
}
2017-06-08
.wrapper>div:nth-last-of-type(5) {
background: orange;
}
background: orange;
}
2017-06-08
.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-06-08
ol>li:nth-last-child(5) {
background: orange;
}
background: orange;
}
2017-06-07