这个样式怎么调?_html/css_WEB-ITnose
Jun 21, 2016 am 08:54 AM
<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>
.AddCss { background: green; text-align: center;width: 76px; height: 30px; line-height: 30px;font-weight: normal; font-size: 12px; color: white; }
我想把AddCss这个样式加在Add这个上面,可是却总是不起作用
回复讨论(解决方案)
加上display: inline-block;
inline-block,你给a加了宽度和高度,那就要把它当div看待了。。。。需要加上display: inline-block

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Difficulty in updating caching of official account web pages: How to avoid the old cache affecting the user experience after version update?

How do I use HTML5 form validation attributes to validate user input?

What is the purpose of the <iframe> tag? What are the security considerations when using it?

How to efficiently add stroke effects to PNG images on web pages?

What is the purpose of the <meter> element?

What are the best practices for cross-browser compatibility in HTML5?

What is the purpose of the <datalist> element?

What is the purpose of the <progress> element?
