Tips for using link element

Source: Internet
Author: User
I heard from my colleagues. I tried it later. It worked well!

When the table contains a link element

For example:
 

< TD Align = "Left" Class = "Mess_see" > < A Style = "Display: block; width: 100%" Onclick = "Setonerowread ('<% # databinder. eval (container. dataitem ," Messageid "). tostring () % > '); "Target = _ blank href ="/controls/commcenter/commmainframe. ashx? Oppositeid = <% # Databinder. eval (container. dataitem,"Senderid"). Tostring () %> & Msgid = <% # Databinder. eval (container. dataitem,"Messageid"). Tostring () %> "> <% # Databinder. eval (container. dataitem,"Subject"). Tostring () %> < Span Class = "Summ_txt" > <% # Databinder. eval (container. dataitem,"Simplebody"). Tostring () %> </ Span > </ A > </ TD >

If you add a style to <A> </a>Style= "Display: block; width: 100%"When you click a blank space, it is equivalent to clicking a link.
You can adjust it to the page to which it points. If you do not add this style, click the blank area and there is no response.

If you only add
Style= "Display: block ;"

Valid only in Firefox, and invalid in IE. Valid if width: 100% is added to ie!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.