在dreamweaver8拆分中插入什么代码隐藏分隔线??

html-css012

在dreamweaver8拆分中插入什么代码隐藏分隔线??,第1张

你是说表格的边框吗?用css设置表格的边框为0,table,td{ border:0}(这里是上下左右都为0)。也可以单独设上(border-top),下(border-bottom),左(border-left),右(border-right)的边框为0

xss:跨站脚本攻击(Cross Site Scripting),为不和层叠样式表(Cascading Style Sheets, CSS)的缩写混淆,故将跨站脚本攻击缩写为XSS。恶意攻击者往Web页面里插入恶意html代码,当用户浏览该页之时,嵌入其中Web里面的html代码会被执行,从而达到恶意攻击用户的特殊目的。

可以自定义 样式

CssClass="GridViewStyle"

.GridViewStyle

{

font-family: Arial, Sans-Serif

font-size:small

table-layout: auto

border-collapse: collapse

border: #1d1d1d 1px solid

}

也可以在 gridView1_RowDataBound里面设置,例如:

protected void gridView1_RowDataBound(object sender, GridViewRowEventArgs e)

{

if (e.Row.RowType == DataControlRowType.DataRow)

{

string str = e.Row.Cells[2].Text

if (str.Length >10)

{

e.Row.Cells[2].Text = str.Substring(0, 10) + "..."

e.Row.Cells[2].ToolTip = str

}

}

}