1

変更しようとしている Wordpress テーマを使用している Web サイトがあります。サイトに行くと

http://66.147.244.132/~dokkanca/

「8 月 10 日までのラマダン スペシャル」と表示されている場所までスクロールすると、リボンの形をしたタイトル バーが次の行に折り返されていることがわかります。これはしたくないのですが、これを防ぐ方法がわかりません。関連する CSS コード内のパラメーターを変更しようと多くの時間を費やしましたが、残念ながら成功していません。タイトルの周りのリボンがまっすぐに横切り、次の行に折り返されないように、これを修正する方法を教えてください。私のWordPressオプションでは、リボン内のこのタイトルは「ボトムスライダータイトル」と呼ばれています。以下は、関連する CSS コードです。

.home-title{width:265px;color:#ffffff;font-family:'Merienda One', sans-serif;font-size:18px;text-shadow: 0 1px 0 rgba(30, 30, 30, 0.6);position:relative;padding:0px 0px 4px 10px;margin:0;}
.home-img{margin:10px 0px 10px 0px;display:block;overflow: hidden;border:2px solid #e9e9e9;}
.home-img .mask{width: 100%;height:100%;position: absolute;overflow: hidden;top:0;left:0;}
.home-img span.link-img {background:url("images/link-img.png") no-repeat 0 0;
   display:block;
   width:31px;
   height:37px;
   text-indent:-9999px;
   margin-left:45%;
     -webkit-transform: translateY(-160px);
   -moz-transform: translateY(-160px);
   -o-transform: translateY(-160px);
   -ms-transform: translateY(-160px);
   transform: translateY(-160px);
   -webkit-transition: all 0.2s ease-in-out 0s;
   -moz-transition: all 0.2s ease-in-out 0s;
   -o-transition: all 0.2s ease-in-out 0s;
   -ms-transition: all 0.2s ease-in-out 0s;
   transition: all 0.2s ease-in-out 0s;
}
.home-img:hover span.link-img{-webkit-transform: translateY(45px);
   -moz-transform: translateY(45px);
   -o-transform: translateY(45px);
   -ms-transform: translateY(45px);
   transform: translateY(45px);
 -webkit-transition: all 0.4s linear;
   -moz-transition: all 0.4s linear;
   -o-transition: all 0.4s linear;
   -ms-transition: all 0.4s linear;
   transition: all 0.4s linear;}


.home-img, .post_image img, .img-left-post img{-webkit-transition: border-color 0.5s ease;-moz-transition: border-color 0.5s ease;-o-transition: border-color 0.5s ease;transition: border-color 0.5s ease;display: block;position: relative;}
.home-img:hover, .post_image:hover img, .img-left-post img:hover{-webkit-transition: border-color 0.5s ease;-moz-transition: border-color 0.5s ease;-o-transition: border-color 0.5s ease;transition: border-color 0.5s ease;}
.home-img .mask, .post_image .mask2{background-color: rgba(0, 0, 0, 0.2);-ms-filter: "progid: DXImageTransform.Microsoft.Alpha(Opacity=0)";   filter: alpha(opacity=0); opacity: 0; -webkit-transition: all 0.3s ease-out 0.3s;-moz-transition: all 0.3s ease-out 0.3s;-o-transition: all 0.3s ease-out 0.3s;-ms-transition: all 0.3s ease-out 0.3s;transition: all 0.3s ease-out 0.3s;}
.home-img:hover .mask, .post_image:hover .mask2{-ms-filter: "progid: DXImageTransform.Microsoft.Alpha(Opacity=100)";filter: alpha(opacity=100);opacity: 1;-webkit-transition: all 0.3s ease-out 0s;-moz-transition: all 0.3s ease-out 0s;-o-transition: all 0.3s ease-out 0s;-ms-transition: all 0.3s ease-out 0s;transition: all 0.3s ease-out 0s;}

.home-bottom{margin-top:30px;}

.text-right{float:right;display:block;}

.home-bottom .home-title{margin-bottom:40px;}
.home-time{font-size:11px;color:#858585;font-family:Georgia, "Times New Roman", Times, serif; font-style:italic;}
.home-post-title{padding:0;margin-bottom:5px;}
.home-post-title a{font-size:14px;}

回答者全員に事前に感謝します。

4

1 に答える 1

0

.home-title を have に設定したため、ラッピングされていwidth:265px;ます。値を大きくすると、問題が解決します。 編集: .home-title で他の要素を妨害しないように、その要素を新しい幅の値 > 265px で 2 番目のクラスに割り当てることができるかどうかを確認してください。さらに別のオプションは、次のようなルールです。.container .span8 .home-title {width: put new width here}

于 2013-07-23T03:41:21.607 に答える