站内搜索

这个样式怎么调?_html/css_WEB

  • Phone: Add




  • .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

    • 上一篇:JavaScript学习笔记:数组随机排序_html/css_WEB
    • 下一篇:爬虫的理论知识储备_html/css_WEB