Home > Web Front-end > HTML Tutorial > 这个样式怎么调?_html/css_WEB-ITnose

这个样式怎么调?_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 08:54:47
Original
1187 people have browsed it



<li>                                        <span>Phone: </span>                                       <span><asp:TextBox ID="txtMobilePhone"  MaxLength="11" runat="server" Height="30px" Width="180px"></asp:TextBox></span>                                        <a href="javascript:void(0);" id="AddMobile"  class="AddCss ">Add</a>                                                                     </li>
Copy after login




.AddCss { background: green; text-align: center;width: 76px; height: 30px; line-height: 30px;font-weight: normal; font-size: 12px; color: white; }
Copy after login


我想把AddCss这个样式加在Add这个上面,可是却总是不起作用       


回复讨论(解决方案)

加上display: inline-block;

inline-block,你给a加了宽度和高度,那就要把它当div看待了。。。。需要加上display: inline-block

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template