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>
</ ......
IF OBJECT_ID(N'dbo.p_ExportHtml') IS NOT NULL
DROP PROC dbo.p_ExportHtml;
GO
/*-- == 导出表/视图中的数据为html 文件======================
此存储过程用于将指定的表/视图中的数据导出为 html 文件
由于是使用存储过程, 因此文件目录基于 sql server 服务器
存储过程中会使用xp_cmdshell ......
web开发过程中,有时候从数据库查出来的数据过长,前台页面如果没有控制好,会显示很长的数据,影响美观,这个时候就需要只显示固定的长度,将多余的以“......”或者直接截取不显示,可以使用
text-overflow:cl ......
在一个网页中的按钮,写onclick事件的处理代码,不小心写成如下:
<input value="Test" type="button" onclick="alert(""OK"");" />
IE提示出错后,再漫不经心地改为:
<input value="Test" type="button" onclick="alert(\"OK\");" />
结果还是出错。
这时,我就想不通了,虽然我知道最直接的解决方法 ......
<OBJECT id=WebBrowser height=0 width=0
classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2></OBJECT>
<INPUT onclick=document.all.WebBrowser.ExecWB(1,1) type=button value=打开 name=Button1>
<INPUT onclick=document.all.WebBrowser.ExecWB(4,1) type=button value=另存为 name=Butt ......