共 79 篇文章 |
|
可以大胆的用text-overflow:ellipsis;Firefox,Chrome,Safari,Opera等浏览器较新版本均支持:text-overflow:ellipsis;了。DOCTYPE html><html><head> <meta charset="gbk"> <title>text-overflow: ellipsis;}</style><body><a href="#" class="text-overflow" ... 阅266 转2 评0 公众公开 14-03-01 11:46 |
阅516 转11 评0 公众公开 14-03-01 09:59 |
CSS省略号text有时为了避免文本文字内容超出一定宽度后溢出,我们想要溢出的部分不显示但用省略号(...)显示,这个时候我们可以使用CSS text-overflow文本溢出省略号属性样式实现。text-overflow应用说明: CSS text-overflow设置或检索是否使用一个省略号标记(...)标示对象内文本文字的溢出。因为我们要避免内容过多撑破对象,所以我们对li... 阅273 转1 评0 公众公开 14-02-28 12:08 |
通常的做法是: <BR /> <BR /> <a href="link1.htm" onfocus="this.blur()">link1</a> <BR /> <a href="link2.htm" onfocus="this.blur()">link2</a> <BR /> <a href="link3.htm" onfocus="this.blur()">link3</a> ... 阅129 转0 评0 公众公开 14-02-17 15:22 |
DIV下图片自适应解决方法(转) div下图片自适应解决方法。百分比适应: 以下是引用片段: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> <html xmlns="http://www.w3.org/1999/xhtml";> <head> <meta ht... 阅46 转0 评0 公众公开 14-02-17 14:48 |
响应式web设计之CSS3 Media Queries.<link rel="stylesheet" type="text/css" href="styleB.css" media="screen and (min-width: 600px) and (max-width: 800px)">margin: auto }}@media only screen and (min-width: 400px) and (max-width: 1024px){ .rightBox{ width: 0;} .leftBox{ width: ... 阅59 转0 评0 公众公开 14-01-25 11:09 |
在css中为背景图片添加链接。在做页面时候,有时难免会把图片图片做成背景,但是又想加个链接,可以采用正面的办法解决。#logo { width:249px;height:62px;width:249px;用IE浏览图片就能有超链接,鼠标并以一个小手出现,在dreamweaver效果是一样的。特别说明:为背景加超链接时必须加display:block,并且按Logo图片的大小定义好它的宽和高。 阅371 转1 评0 公众公开 14-01-11 10:58 |
响应式web设计之CSS3 Media Queries.<link rel="stylesheet" type="text/css" href="styleB.css" media="screen and (min-width: 600px) and (max-width: 800px)">margin: auto }}@media only screen and (min-width: 400px) and (max-width: 1024px){ .rightBox{ width: 0;} .leftBox{ width: ... 阅45 转0 评0 公众公开 14-01-02 11:02 |
(2)dedecms导航,当前栏目高亮显示代码,全站通用dedecms导航,当前栏目高亮显示代码,全站通用。如果指定ID比如 {dede:channeltype=''son'' typeid=''9''currentstyle="<li><ahref=''~typelink~''class=''dq''>~typename~</a></li... 阅1878 转27 评0 公众公开 13-12-17 16:35 |
CSS中不为人知Zoom属性的使用介绍(IE私有属性)其实Zoom属性是IE浏览器的专有属性,Firefox等浏览器不支持。_zoom是CSS hack中专对IE6起作用的部分。CSS中zoom:1的作用 兼容IE6、IE7、IE8浏览器,经常会遇到一些问题,可以使用zoom:1来解决,有如下作用: 触发IE浏览器的haslayout 解决ie下的浮动,margin重叠等一些问题。5、检查 IE 下是否触发... 阅74 转2 评0 公众公开 13-12-13 22:20 |