0

如果您查看 www.cleantelligent.com/tour,您会看到时尚且实用的活跃、实用的工具提示。它们是没有任何 JS 或 jQuery 的纯 CSS。

我们已经安装了 WordPress,我正在尝试将代码从我们的实时站点复制并粘贴到我们的 beta.cleantelligent.com/tour 到目前为止,一切都很好,直到这些工具提示。出于某种原因,没有阅读 CSS。

这是 WordPress 的问题吗?它以不同的方式阅读我的代码吗?

/*TOUR LANDING PAGE*/
a .tooltiptour span{
color: #1982d1;
text-decoration: none;
transition-property: opacity;
transition-duration: 1s;
background: none repeat scroll 0% 0% rgb(159, 218, 238);
border: 1px solid rgb(43, 176, 215);
}

.tooltiptour {
color: #000000;
outline: none;
text-decoration: none;
position: relative;
}
.tooltiptour span {
margin-left: -999em;
position: absolute;
opacity: 0;
transition: opacity .3s ease-in-out !important;
-moz-transition: opacity .3s ease-in-out;
-webkit-transition: opacity .3s ease-in-out;
}
.tooltiptour:hover span {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px 5px;
-webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1);
-moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1);
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
font-family: 'News Cycle', sans-serif;
position: absolute;
left: 4em;
top: -1.9em;
z-index: 99;
margin-left: 0;
width: 280px;
opacity: 1;
}
.tooltiptour:hover img {
border: 0;
margin: 0px 0 0 -95px;
float: left;
position: absolute;
width: 85px;
height: 85px;
}

.tooltiptour:hover h2 {
font-family: 'Vollkorn', serif;
font-weight: bold;
display: block;
color: #373737;
margin: 0.8125em 0;
font-size: 24px;
line-height: 0.1em;
}
.splashtipstour { 
padding: 0.8em 1em; 
}
* html a:hover { 
background: transparent; 
}
.splashtipstour {
padding: 0.5em 0.8em 0.8em 2em;
background: rgb(246,248,249); /* Old browsers */
background: -moz-linear-gradient(top, rgba(246,248,249,1) 44%, rgba(245,247,249,1) 52%, rgba(215,222,227,1) 70%, rgba(147,143,143,1) 98%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(44%,rgba(246,248,249,1)), color-stop(52%,rgba(245,247,249,1)), color-stop(70%,rgba(215,222,227,1)), color-stop(98%,rgba(147,143,143,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(246,248,249,1) 44%,rgba(245,247,249,1) 52%,rgba(215,222,227,1) 70%,rgba(147,143,143,1) 98%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(246,248,249,1) 44%,rgba(245,247,249,1) 52%,rgba(215,222,227,1) 70%,rgba(147,143,143,1) 98%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(246,248,249,1) 44%,rgba(245,247,249,1) 52%,rgba(215,222,227,1) 70%,rgba(147,143,143,1) 98%); /* IE10+ */
background: linear-gradient(to bottom, rgba(246,248,249,1) 44%,rgba(245,247,249,1) 52%,rgba(215,222,227,1) 70%,rgba(147,143,143,1) 98%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f6f8f9', endColorstr='#938f8f',GradientType=0 ); /* IE6-9 */
border: 1px solid #FFFFD1; 
}
/*END TOUR LANDING*/
4

1 回答 1

0

嗯,我想通了。

WordPress 正在添加换行符和<p>标签。我下载了一个禁用名为“Raw HTML”的插件,并选中了告诉它不要这样做的框。

谢谢!

于 2013-11-13T23:30:56.877 回答