请问如果能够inline-block为什么2个语句不再同一行显示?
<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>隐性改变display类型</title> <style> .container a{ position:absolute; width:300px; background:#ccc; margin:100px 0; height:200px; line-height:200px; } .t1{ position:absolute; background:#ccc; } </style> </head> <body> <p class="t1">111111111111111111111</p> <div class="container"> <a href="#" title="">进入课程请单击这里</a> </div> </body> </html>
请问如果能够inline-block为什么2个语句不再同一行显示?