為什么加上a標(biāo)簽后無法顯示?
菜單的這個menu部分的代碼 <div?class="title"> ????<h4>Voluptate?cillum?fugiat.</h4> ????<p?class="comment">Cheese,?tomato,?mushrooms,?onions.</p> </div>
這個代碼當(dāng)我加上a標(biāo)簽后,除此之外其余代碼包括css都沒有改動的情況下
<div?class="title"><a?href=""> ????<h4>Voluptate?cillum?fugiat.</h4> ????<p?class="comment">Cheese,?tomato,?mushrooms,?onions.</p> </a></div>
刷新頁面,發(fā)現(xiàn)
Voluptate?cillum?fugiat.和Cheese,?tomato,?mushrooms,?onions.這兩行字都無法顯示,但是當(dāng)鼠標(biāo)放在這兩行字的位置時又能點(diǎn)擊跳轉(zhuǎn),這是什么問題?
2018-07-27
a標(biāo)簽得加上display: block;