css样式
qianxiaochi
这个作者很懒,什么都没留下…
展开
-
white-space属性
调拭了好长时间的样式,终于解决了让div强制在一行显示的问题!!语法如下:white-space : normal | pre | nowrap 取值:normal : 默认值。默认处理方式。文本自动处理换行。假如抵达容器边界内容会转到下一行 pre : 换行和其他空白字符都将受到保护。这个值需要IE6+或者 !DOCTYPE 声明为 standards-compliant mode原创 2010-01-26 20:19:00 · 478 阅读 · 0 评论 -
控制页面最小宽度
#bottom{min-width:800px;_width:expression((document.documentElement.clientWidth||document.body.clientWidth)line-height:200px;background:#FF0000;_zoom: /* 触发layout才能查看clientWidth,可省略掉 */}转载 2010-03-18 17:15:00 · 680 阅读 · 0 评论 -
链接样式
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">无标题文档a:link { color: #000; text-decoration: none;}a:visited { color: #000; text-decoration: none;}a:hover { color原创 2010-05-19 10:13:00 · 296 阅读 · 0 评论 -
强制换行
强制不换行div{white-space:nowrap;}自动换行div{ word-wrap: break-word; word-break: normal; }强制英文单词断行div{word-break:break-all;}============================================CSS设置不转行:overflow:hidden 隐藏white-space:normal 默认 pre 换行和其他空白字符都将受到保护nowrap 强制在同一行内显示所有文本,直到文本结束或转载 2010-08-26 09:49:00 · 416 阅读 · 0 评论 -
ie 火狐半透明
<br />.exam_middel .exam_middel_bot .analysis_wrong{margin:10px 0 0 0;background-color:rgba(198,0,0,0.2);padding:5px;filter:Alpha(opacity=20);_background:#C60000;_display:inline-block;}<br />.exam_middel .exam_middel_bot .analysis_wrong .font_span{ _positi原创 2010-12-02 17:30:00 · 338 阅读 · 0 评论 -
png图片ie6下背景透明
虽然有让IE6支持PNG透明背景的JS程序,但不是很方便,而且影响代码的简洁,使用到的是:IE5.5+的AlphaImageLoader滤镜 语法: filter : progid:DXImageTransform.Microsoft.AlphaImageLoader ( enabled=bEnabled , sizingMethod=sSize , src=sURL ) 属性: en转载 2009-12-28 19:11:00 · 800 阅读 · 0 评论 -
一些公共样式 加了一些注释
html{color:#000;background:#FFF;} body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form, fieldset,input,textarea,p,blockquote,th,td { margin:0; padding:0; } table { border转载 2011-11-16 17:04:38 · 331 阅读 · 0 评论 -
IE浏览器 position:fixed 问题
这个是我之前的解决办法: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> http://www.w3.org/1999/xhtml"> 1title> *html{overflow:hidden;} *body{height:100%;overflow:auto;} body {margin:0转载 2011-11-24 11:44:36 · 4026 阅读 · 0 评论