How to disable
tags inside
by css?

前端 未结 4 874
日久生厌
日久生厌 2020-12-15 15:28


won\'t let me to display 3 buttons inline, so i need to disable it inside div, and I can\'t just delete them, they are automatically there.

I

4条回答
  •  借酒劲吻你
    2020-12-15 16:01

    You could alter your CSS to render them less obtrusively, e.g.

    div p,
    div br {
        display: inline;
    }
    

    http://jsfiddle.net/zG9Ax/

    or - as my commenter points out:

    div br {
        display: none;
    }
    

    but then to achieve the example of what you want, you'll need to trim the p down, so:

    div br {
        display: none;
    }
    div p {
        padding: 0;
        margin: 0;
    }
    

    http://jsfiddle.net/zG9Ax/1

提交回复
热议问题