小知识

取消chrome浏览器下的input和textarea的默认样式

input、button、select、textarea {outline:none}

取消chrome下textarea可拖动放大

textarea {resize:none}

最后,写在一起,重置input和textarea的默认样式

input、button、select、textarea {outline:none}

textarea {resize:none}

HTML <map>标签

<img src="planets.jpg" border="0" usemap="#planetmap" alt="Planets" />

<map name="planetmap" id="planetmap">
  <area shape="circle" coords="180,139,14" href ="venus.html" alt="Venus" />
  <area shape="circle" coords="129,161,10" href ="mercur.html" alt="Mercury" />
  <area shape="rect" coords="0,0,110,260" href ="sun.html" alt="Sun" />
</map>

 <img>标签中 usemap="map里面id的名字"

   <map name="map里面id的名字" id="map里面id的名字">

 "circle" coords = "第一个参数:圆心的x轴;第二个参数:圆心的y轴;第三个参数:圆的半径"

 "rect" coords = "第一个参数:左上角x轴;第二个参数:左上角y轴;第三个参数:宽度;第四个参数:高度"

posted @ 2017-02-28 09:46  shirleyYing  阅读(125)  评论(0)    收藏  举报