小编Vop*_*sec的帖子

div旋转时jQuery可拖动跳转

请帮忙解决问题,我在跳转div时解决了跳转层的问题,在某种程度上打开了div,我在这里找到了解决方案 - Webkit和jQuery draggable jump,但是当我把div旋转90度时,它没有移动到父div的边缘.如何使它可以移动到父div的右边缘.

更多信息:

<div class="template" id="template">
    <div id="box">Some text!</div>
</div>
Run Code Online (Sandbox Code Playgroud)

CSS:

.template {
    width: 400px;
    height: 255px;
    position: relative;
    margin: 16px;
    border: 1px dotted #777;
    overflow: hidden;
}

#box {
    width: 100px;   
    border: 1px solid;
    background-color: red;
    position: absolute;
    left: 75px;
    top: 75px;
    -moz-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -sand-transform: rotate(90deg);
    transform: rotate(90deg);
    text-align: center;
    cursor: move;
}
Run Code Online (Sandbox Code Playgroud)

我已经找到的解决方案:

 $(document).ready(function () {
             var recoupLeft, recoupTop;
             $('#box').draggable({  
                 containment: "#template",
                 start: function (event, ui) {                     
                     var …
Run Code Online (Sandbox Code Playgroud)

html css jquery rotation draggable

6
推荐指数
1
解决办法
1188
查看次数

图像属性的值(C#)

我正在尝试解决为Bitmap对象更改值ImageDescription的问题.添加文件的描述.搜索相关主题,我还没有找到解决方案.

我的代码:

public Bitmap ImageWithComment(Bitmap image)
{
   string filePath = @"C:\1.jpg";
   var data = Encoding.UTF8.GetBytes("my comment"); 
   var propItem = image.PropertyItems.FirstOrDefault();
   propItem.Type = 2;
   propItem.Id = 40092;
   propItem.Len = data.Length;
   propItem.Value = data;
   image.SetPropertyItem(propItem);
   image.Save(filePath);
   return image;
}
Run Code Online (Sandbox Code Playgroud)

但带有新评论的图片不保存在文件夹中((请帮帮我

c# image bitmap

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

标签 统计

bitmap ×1

c# ×1

css ×1

draggable ×1

html ×1

image ×1

jquery ×1

rotation ×1