Remove default style
ul,dl,dd{margin:0;padding:0;}
Brother Chicken, I would like to ask
#mydiv2 dl{
height:30px;
background-color:#0FF;
margin:0px;
padding: 0px;
}
#mydiv2 dl dd ul {
. . . . . .
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
padding-top: 0px;
padding- right: 0px;
padding-bottom: 0px;
padding-left: 0px;
}
I indirectly set these items to 0 in this code, why not Does it take effect?
How can it take effect if you set it directly like you did? ?
Research found that the margin of dd is not set.
It seems that the padding of dl does not work on dd
Brother Ji, I have another question, I set the height of dt, why is the result larger than the set height? Times? ?