html 圆角table
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
<title>CSS</title>
<style type="text/css">
<!--
*{margin:0;padding:0;}
body {
font: 11px Arial, sans-serif;
padding: 10px;
color: #333;
}
.divBox {
padding: 10px;
border-right: 1px solid #000;
border-left: 1px solid #000;
}
b, u, i {
display: block;
height: 1px;
overflow: hidden;
}
b.f1 {
margin: 0 4px;
background: #000;
}
b.f2 {
margin: 0 2px;
border-right: 2px solid #000;
border-left: 2px solid #000;
}
b.f3 {
height: 2px;
margin: 0 1px;
border-right: 1px solid #000;
border-left: 1px solid #000;
}
-->
</style>
</head>
<body>
<div style="width:200px;">
<b class="f1"></b><b class="f2"></b><b class="f3"></b>
<div class="divBox">CSS</div>
<b class="f3"></b><b class="f2"></b><b class="f1"></b>
</div>
</body>
</html>
相关文档:
原文地址:http://www.cnblogs.com/penny/archive/2008/09/01/1281293.html
看完此文请再看看<<提高你的DHTML性能>>
动态创建HTML内容除了用 document.write()和document.innerHTML()以外,还可以用DOM提供的方法:
createElement()和createTextNode()
1.先来说说DOM提供的createElement()和createTextNod ......
Html 标签中的Alt和Title
Alt和Title都是提示性语言标签,注意其区别。
在我们浏览网页时,当鼠标停留在图片对象或文字链接上时,在鼠标的右下角有时会出现一个提示信息框。对目标进行一定的注释说明。在一些场合,它的作用是很重要的。
alt 用来给图片来提示的。Title用来给链接文字或普通文字提示的。
用法如下:
......
#region 清除文本样式 主要应用于从网络粘贴进来的文本
[WebMethod]
public static string ClearStyle(string yourStr)//清除样式
{
& ......
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
</title>
</head>
<body>
<table width="100%" border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF"
&n ......
public string NoExcuteHtml(string Htmlstring)
{
string x = string.Empty;
x = Htmlstring.Replace(@"&", "&");//将&设置为保留字
x ......