小编swe*_*lea的帖子

为什么是顶级:50%的css不工作?

我正在建立一个网站,我正试图垂直居中:

 position: absolute;
 width:1200px;
 height:600px;
 top: 50%;
 left: 50%;
 margin-left: -600px;
Run Code Online (Sandbox Code Playgroud)

我的HTML是一个单一的 div

html css

23
推荐指数
3
解决办法
6万
查看次数

Codeigniter没有显示页面

我已经制作了一个名为'Controller'的codigniter控制器,我已经为我们设置了默认控制器,但是当我尝试访问该控制器内的不同功能时,例如.博客它只显示主页...

我没有在默认控制器之外进行任何路由器更改.

请帮忙.

php controller codeigniter

2
推荐指数
1
解决办法
160
查看次数

使用jquery获取图像的原始高度

我正在尝试创建一个使用jQuery来获取图像高度的函数,我已经尝试了我能找到的所有内容但没有任何作用......

$(document).ready(function() {
window.onload = onLoad;

var array = "0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|81|82|83|84|85|86|87|88|89|90|91|92|93|94|95|96|97|98|99|100|101|102|103|104|105|106|107".split("|");

function onLoad(){

    $("style").html("");

    var img = array[Math.floor(Math.random()*array.length)] + ".JPG";

    document.getElementById("show").src = img;

    var img_height = $("#show").height();

    var img_hgt = img_height - 238;

    alert(img_hgt);

    $("#show").ready(function() {
        var img_hgt = $("#show").height();
    })

    $("style").html("#show {position:absolute;top:0px;left:0px; -webkit-animation-name:slide_animation; -webkit-animation-duration:5s;} @-webkit-keyframes slide_animation { 0% { top:0px; } 100% { top:"+img_hgt+"px; } }");
    setTimeout(onLoad,2*1000);
}
});
Run Code Online (Sandbox Code Playgroud)

请帮忙...

我想用这个动画实现的是一种ken-burns滑下效果......

html css jquery image width

0
推荐指数
1
解决办法
725
查看次数

在C#中访问名称时使用int

我目前正在使用c#构建一个Windows Phone 8应用程序,我想知道如何实现这一点:

for (int i = 1; i <= 18; i++)
{
    _(i)Score.Text = "whatever here";
}
Run Code Online (Sandbox Code Playgroud)

运行时应该是这样的:

_1Score.Text = "whatever here";
_2Score.Text = "whatever here";
_3Score.Text = "whatever here";
etc.
Run Code Online (Sandbox Code Playgroud)

我怎么能够实现这一点,因为只是放_(i)Score不起作用.

编辑:我正在做的是制作一个具有表概述的记分卡应用程序.我把每个人都命名为1Socre,2Score,3Score等.我只是想更新他们所说的内容.它们都是文本框,我只是替换里面的文本.

请帮忙.谢谢

c# var windows-phone-8

0
推荐指数
1
解决办法
75
查看次数

foreach语句中的多个where子句c#

我有以下声明:

foreach (var textBlock in scoresGrid.Children.OfType<TextBlock>().Where(three => three.Name.Contains("Three")))
Run Code Online (Sandbox Code Playgroud)

我怎么能做到这样我才能做到这一点呢where name contain three or four

请帮忙.谢谢

c# linq where

0
推荐指数
1
解决办法
1716
查看次数

标签 统计

c# ×2

css ×2

html ×2

codeigniter ×1

controller ×1

image ×1

jquery ×1

linq ×1

php ×1

var ×1

where ×1

width ×1

windows-phone-8 ×1