HTML设置字体背景和阴影
<html>
<head>
<title>实现字体阴影 </title>
</head>
<body>
<div STYLE="position:relative; width=480;
filter:Shadow(color=red, direction=135);
color:white; "align="center">
<p style="font-size:48">欢迎光临我的主页 </p>
</div>
<div >
<span style="background:#BDD3F7">第 </span> 102
<span style="background:#BDD3F7">号 </span>
</div>
</body>
</html>
相关文档:
1: 遍历并输出Table中值
<table id="tb">
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
</ ......
我们在用Flex进行开发的时候,有时候需要实现像html 细线表格的那种效果,原理很简单,但是需要一些技巧,不然的话很难控制线条的粗细,其实只需要设置几个样式就能搞定,一下是源码,大家可以运行一下看看效果<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml ......
示例:此DIV为固定定位对象
要使HTML元件定位于浏览器的某个固定位置,而不随滚动条滚动,用以下CSS代码即可,跨各个主流浏览器: POSITION: fixed! important; TOP: 100px; _position: absolute; _top: 40; _left: 100。
示例见右边黄底红字块。 ......
web开发过程中,有时候从数据库查出来的数据过长,前台页面如果没有控制好,会显示很长的数据,影响美观,这个时候就需要只显示固定的长度,将多余的以“......”或者直接截取不显示,可以使用
text-overflow:cl ......
纯css:
1 .在 table 的 css 中声明: border-collapse: collapse; border-spacing: 0;
2 .th td 的css 中声明: padding:0;
半纯css:
1.上同.
2.<table cell-padding="0" .............
详细见:
http://www.dreamdu.com/xhtml/attribute_cellpadding_cellspacing/
http://www.haoxiai.net/wangzhanzhizu ......