HTML 按钮在使用 Dreamweaver 时没有响应 CSS
HTML Button not responding to the CSS in live using dreamweaver
大家好,我的 HMTL 有问题,分配给它的 CSS 无法正常工作。该按钮有效,它将 link 正常运行,但 CSS 不会影响它。
我使用 Dreamweaver CC,在设计视图中似乎 CSS 正在工作,但是一旦我在浏览器上实时查看它,它就会恢复到其原始状态我将提供一些代码图片和实时视图向您展示我的意思是。
我的HTML
<a href="methandrailhome.html" class="returnhome">Return Home</a><!-- end .returnhome -->
我的CSS
#form .returnhome {
-moz-box-shadow:inset -4px 2px 0px -13px #ffffff;
-webkit-box-shadow:inset -4px 2px 0px -13px #ffffff;
box-shadow:inset -4px 2px 0px -13px #ffffff;
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f9f9f9), color-stop(1, #e9e9e9) );
background:-moz-linear-gradient( center top, #f9f9f9 5%, #e9e9e9 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e9e9e9');
background-color:#f9f9f9;
-webkit-border-top-left-radius:0px;
-moz-border-radius-topleft:0px;
border-top-left-radius:0px;
-webkit-border-top-right-radius:0px;
-moz-border-radius-topright:0px;
border-top-right-radius:0px;
-webkit-border-bottom-right-radius:0px;
-moz-border-radius-bottomright:0px;
border-bottom-right-radius:0px;
-webkit-border-bottom-left-radius:0px;
-moz-border-radius-bottomleft:0px;
border-bottom-left-radius:0px;
text-indent:-1.9px;
border:2px solid #dcdcdc;
display:inline-block;
color:#666666;
font-family:Arial;
font-size:13px;
font-weight:bold;
font-style:normal;
height:40px;
line-height:40px;
width:95px;
text-decoration:none;
text-align:center;
text-shadow:0px 0px 0px #ffffff;
}
.returnhome {
-moz-box-shadow:inset -4px 2px 0px -13px #ffffff;
-webkit-box-shadow:inset -4px 2px 0px -13px #ffffff;
box-shadow:inset -4px 2px 0px -13px #ffffff;
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f9f9f9), color-stop(1, #e9e9e9) );
background:-moz-linear-gradient( center top, #f9f9f9 5%, #e9e9e9 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e9e9e9');
background-color:#f9f9f9;
-webkit-border-top-left-radius:0px;
-moz-border-radius-topleft:0px;
border-top-left-radius:0px;
-webkit-border-top-right-radius:0px;
-moz-border-radius-topright:0px;
border-top-right-radius:0px;
-webkit-border-bottom-right-radius:0px;
-moz-border-radius-bottomright:0px;
border-bottom-right-radius:0px;
-webkit-border-bottom-left-radius:0px;
-moz-border-radius-bottomleft:0px;
border-bottom-left-radius:0px;
text-indent:-1.9px;
border:2px solid #dcdcdc;
display:inline-block;
color:#666666;
font-family:Arial;
font-size:13px;
font-weight:bold;
font-style:normal;
height:40px;
line-height:40px;
width:95px;
text-decoration:none;
text-align:center;
text-shadow:0px 0px 0px #ffffff;
}
<a href="#" class="returnhome">Return Home</a>
Here is what live view from Dreamwweaver is showing
把那个 #form
拿出来。
.returnhome {
-moz-box-shadow: inset -4px 2px 0px -13px #ffffff;
-webkit-box-shadow: inset -4px 2px 0px -13px #ffffff;
box-shadow: inset -4px 2px 0px -13px #ffffff;
background: -webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f9f9f9), color-stop(1, #e9e9e9));
background: -moz-linear-gradient( center top, #f9f9f9 5%, #e9e9e9 100%);
filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e9e9e9');
background-color: #f9f9f9;
-webkit-border-top-left-radius: 0px;
-moz-border-radius-topleft: 0px;
border-top-left-radius: 0px;
-webkit-border-top-right-radius: 0px;
-moz-border-radius-topright: 0px;
border-top-right-radius: 0px;
-webkit-border-bottom-right-radius: 0px;
-moz-border-radius-bottomright: 0px;
border-bottom-right-radius: 0px;
-webkit-border-bottom-left-radius: 0px;
-moz-border-radius-bottomleft: 0px;
border-bottom-left-radius: 0px;
text-indent: -1.9px;
border: 2px solid #dcdcdc;
display: inline-block;
color: #666666;
font-family: Arial;
font-size: 13px;
font-weight: bold;
font-style: normal;
height: 40px;
line-height: 40px;
width: 95px;
text-decoration: none;
text-align: center;
text-shadow: 0px 0px 0px #ffffff;
}
<a href="methandrailhome.html" class="returnhome">Return Home</a>
大家好,我的 HMTL 有问题,分配给它的 CSS 无法正常工作。该按钮有效,它将 link 正常运行,但 CSS 不会影响它。 我使用 Dreamweaver CC,在设计视图中似乎 CSS 正在工作,但是一旦我在浏览器上实时查看它,它就会恢复到其原始状态我将提供一些代码图片和实时视图向您展示我的意思是。
我的HTML
<a href="methandrailhome.html" class="returnhome">Return Home</a><!-- end .returnhome -->
我的CSS
#form .returnhome {
-moz-box-shadow:inset -4px 2px 0px -13px #ffffff;
-webkit-box-shadow:inset -4px 2px 0px -13px #ffffff;
box-shadow:inset -4px 2px 0px -13px #ffffff;
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f9f9f9), color-stop(1, #e9e9e9) );
background:-moz-linear-gradient( center top, #f9f9f9 5%, #e9e9e9 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e9e9e9');
background-color:#f9f9f9;
-webkit-border-top-left-radius:0px;
-moz-border-radius-topleft:0px;
border-top-left-radius:0px;
-webkit-border-top-right-radius:0px;
-moz-border-radius-topright:0px;
border-top-right-radius:0px;
-webkit-border-bottom-right-radius:0px;
-moz-border-radius-bottomright:0px;
border-bottom-right-radius:0px;
-webkit-border-bottom-left-radius:0px;
-moz-border-radius-bottomleft:0px;
border-bottom-left-radius:0px;
text-indent:-1.9px;
border:2px solid #dcdcdc;
display:inline-block;
color:#666666;
font-family:Arial;
font-size:13px;
font-weight:bold;
font-style:normal;
height:40px;
line-height:40px;
width:95px;
text-decoration:none;
text-align:center;
text-shadow:0px 0px 0px #ffffff;
}
.returnhome {
-moz-box-shadow:inset -4px 2px 0px -13px #ffffff;
-webkit-box-shadow:inset -4px 2px 0px -13px #ffffff;
box-shadow:inset -4px 2px 0px -13px #ffffff;
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f9f9f9), color-stop(1, #e9e9e9) );
background:-moz-linear-gradient( center top, #f9f9f9 5%, #e9e9e9 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e9e9e9');
background-color:#f9f9f9;
-webkit-border-top-left-radius:0px;
-moz-border-radius-topleft:0px;
border-top-left-radius:0px;
-webkit-border-top-right-radius:0px;
-moz-border-radius-topright:0px;
border-top-right-radius:0px;
-webkit-border-bottom-right-radius:0px;
-moz-border-radius-bottomright:0px;
border-bottom-right-radius:0px;
-webkit-border-bottom-left-radius:0px;
-moz-border-radius-bottomleft:0px;
border-bottom-left-radius:0px;
text-indent:-1.9px;
border:2px solid #dcdcdc;
display:inline-block;
color:#666666;
font-family:Arial;
font-size:13px;
font-weight:bold;
font-style:normal;
height:40px;
line-height:40px;
width:95px;
text-decoration:none;
text-align:center;
text-shadow:0px 0px 0px #ffffff;
}
<a href="#" class="returnhome">Return Home</a>
Here is what live view from Dreamwweaver is showing
把那个 #form
拿出来。
.returnhome {
-moz-box-shadow: inset -4px 2px 0px -13px #ffffff;
-webkit-box-shadow: inset -4px 2px 0px -13px #ffffff;
box-shadow: inset -4px 2px 0px -13px #ffffff;
background: -webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f9f9f9), color-stop(1, #e9e9e9));
background: -moz-linear-gradient( center top, #f9f9f9 5%, #e9e9e9 100%);
filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e9e9e9');
background-color: #f9f9f9;
-webkit-border-top-left-radius: 0px;
-moz-border-radius-topleft: 0px;
border-top-left-radius: 0px;
-webkit-border-top-right-radius: 0px;
-moz-border-radius-topright: 0px;
border-top-right-radius: 0px;
-webkit-border-bottom-right-radius: 0px;
-moz-border-radius-bottomright: 0px;
border-bottom-right-radius: 0px;
-webkit-border-bottom-left-radius: 0px;
-moz-border-radius-bottomleft: 0px;
border-bottom-left-radius: 0px;
text-indent: -1.9px;
border: 2px solid #dcdcdc;
display: inline-block;
color: #666666;
font-family: Arial;
font-size: 13px;
font-weight: bold;
font-style: normal;
height: 40px;
line-height: 40px;
width: 95px;
text-decoration: none;
text-align: center;
text-shadow: 0px 0px 0px #ffffff;
}
<a href="methandrailhome.html" class="returnhome">Return Home</a>