将<a>元素显示为块元素
实例代码:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style>
a{
display:block;
}
</style>
</head>
<body>
<h1>将<a>元素显示为块元素</h1>
<a href="https://www.dwoke.com" target="blank">HTML</a>
<a href="https://www.dwoke.com" target="blank">CSS</a>
<a href="https://www.dwoke.com" target="blank">Javascript</a>
</body>
</html>
运行效果:
评论