Li spacing Problem

Source: Internet
Author: User
These days I encountered a small problem about Li. The so-called difficult, not the meeting. At the beginning, I took a lot of time and did not solve the problem. Later I checked the information and immediately went OK. I had to admire the power of the network.

First look at the source code:
<Asp: radiobutton id = "rbtuploadinsert" runat = "server" text = "insert"/>
<Ul>
<Li>
<Asp: radiobuttonlist id = "rbluploadinsert" runat = "server">
<Asp: listitem value = "1"> database </ASP: listitem>
<Asp: listitem value = "2"> file </ASP: listitem>
</ASP: radiobuttonlist>
</LI>
</Ul>
<Asp: radiobutton id = "rbtuploadupdate" runat = "server" text = "Update"/>
<Ul>
<Li>
<Asp: radiobuttonlist id = "rbluploadupdate" runat = "server">
<Asp: listitem value = "1"> database </ASP: listitem>
<Asp: listitem value = "2"> file </ASP: listitem>
</ASP: radiobuttonlist>
</LI>
</Ul>

The effect is shown in. It is not perfect and the spacing is large.

Let's look at the modified Code:

<Asp: radiobutton id = "rbtuploadinsert" runat = "server" text = "insert"/>
<Ul style = "list-style: none; margin: 0px; padding: 0px; margin-left: 2em;">
<Li>
<Asp: radiobuttonlist id = "rbluploadinsert" runat = "server">
<Asp: listitem value = "1"> database </ASP: listitem>
<Asp: listitem value = "2"> file </ASP: listitem>
</ASP: radiobuttonlist>
</LI>
</Ul>
<Asp: radiobutton id = "rbtuploadupdate" runat = "server" text = "Update"/>
<Ul style = "list-style: none; margin: 0px; padding: 0px; margin-left: 2em;">
<Li>
<Asp: radiobuttonlist id = "rbluploadupdate" runat = "server">
<Asp: listitem value = "1"> database </ASP: listitem>
<Asp: listitem value = "2"> file </ASP: listitem>
</ASP: radiobuttonlist>
</LI>
</Ul>

The black part is the focus.

Current results:

I feel perfect.

I would like to thank the following pages for their help.
Http://topic.csdn.net/t/20021106/12/1152901.html
Http://hi.baidu.com/juyojin/blog/item/68853e23274c0c4f9258078f.html
Http://www.jb51.net/article/12768_2.htm

Finally, I complained again. I haven't written anything for more than a month. Today I came up with a look, it seems that the editor has been changed, and it is not as convenient as before, and I hope to make some improvements.

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.