随笔分类 - HTML5
摘要:/* 等腰三角形(箭头朝上); */ #div1{ width: 0; height: 0; border-bottom: 100px solid cyan; border-left: 50px solid transparent; border-right: 50px solid transpar
阅读全文
摘要:html插入图片有两种方式:一种是通过<img>标签插入的正常的图片,另一种是通过css样式插入的背景图片 1、首先你是通过第二种方式插入的是背景图片,直接用width和height只能控制div的宽度和高度。 2、如果你插入的图片是通过<img>标签的方式来插入的话,可以通过<img>自身的属性控
阅读全文