css background border
804 ワード
よく使われるbackground border属性:
<style type="text/css">
div{
height: 100px;
width: 100px;
padding: 5px;
/*background: http://www.w3school.com.cn/cssref/pr_background.asp*/
background-color: yellow;
background-image: url(img/repo.png);
background-size: 50px 10px;
/* */
background-repeat: no-repeat;
/* */
background-position: 10px 10px;
/* */
background-clip: content-box;
/* ,content-box background */
background-origin: content-box;
/* */
background-attachment: fixed;
/* , background-origin , background-origin */
/*border:http://www.w3school.com.cn/cssref/pr_border.asp;*/
border: 1px black dashed;
/* */
border-radius: 10px;
/* */
}
</style>