用Literal控件来输出通知内容,结果从右往左滚动了
怎么控制文字滚动方向啊?
While read.Read()
Literal1.Text = Literal1.Text & "<p>" & Convert.ToString(read.GetValue(i)) & "</p>"
End While
Literal1.Text = Literal1.Text & "</marquee>"
这是我的代码。
谢谢
Conn.Open()
Dim com As New System.Data.SqlClient.SqlCommand
com.Connection = Conn
com.CommandText = "select 内容,发布日期 from 系统通知"
Dim i As Integer
Dim read As System.Data.SqlClient.SqlDataReader = com.ExecuteReader()
While read.Read()
Literal1.Text = Literal1.Text & "<p>" & Convert.ToString(read.GetValue(i)) & "</p>"
End While
Literal1.Text = Literal1.Text & "</marquee>"
Conn.Close()
这是显示通知所有的了
html里有
scrollAmount="1" scrollDelay="60" direction="up" width="150" height="144">通知</MARQUEE>
结果它们都不在一块,“通知”上滚动,而我的通知内容从右往左滚动,不知道怎样才能让它向上滚动啊
谢谢
Conn.Open()
Dim com As New System.Data.SqlClient.SqlCommand
com.Connection = Conn
com.CommandText = "select 内容,发布日期 from 系统通知"
Dim i As Integer
Dim read As System.Data.SqlClient.SqlDataReader = com.ExecuteReader()
While read.Read()
Literal1.Text = Literal1.Text & "<p>" & Convert.ToString(read.GetValue(i)) & "</p>" End While
Literal1.Text = Literal1.Text & "</marquee>"
Conn.Close()
我用这些代码时,通知就右向左滚动,在html里加入
<marquee direction="down"></marquee>后没什么变化,"</p>"是干什么的啊,如果把他们都成一行右向左滚动也可以,大家告我怎么改了,我不会这个都难为死我了