是否有可能给我们一个 display:block for 和 input submit?还是我必须为提交按钮创建一个图像?
<div class="signin_btn">
<a title="Current Members Sign-In" class="l_helpl" href="/">SIGN-IN</a>
</div>
最佳答案
你甚至可以这样做
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test</title>
</head>
<body>
<style type="text/css">
.button
{
width: 100px;
height: 200px;
background-color: Red;
cursor: pointer;
display: block;
</style>
<div>
<a href="http://www.bbc.co.uk" class="button"></a>
</div>
</body>
</html>
关于html - 显示:Block as an input submit,可以吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7709008/