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