Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache flex Flex如何设置边距按钮 按钮 { 边缘左侧:500px; }_Apache Flex_Actionscript - Fatal编程技术网

Apache flex Flex如何设置边距按钮 按钮 { 边缘左侧:500px; }

Apache flex Flex如何设置边距按钮 按钮 { 边缘左侧:500px; },apache-flex,actionscript,Apache Flex,Actionscript,边缘左侧不起作用,如何将按钮从默认的中心移动到其他位置?如果要移动按钮,请使用“左”或“x”属性: <?xml version="1.0"?> <!-- styles/TimeFormat.mxml --> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="red"> <mx:Style> Button {

边缘左侧不起作用,如何将按钮从默认的中心移动到其他位置?

如果要移动按钮,请使用“左”或“x”属性:

<?xml version="1.0"?>
<!-- styles/TimeFormat.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="red">

    <mx:Style>
    Button
    {
        marginLeft: 500px;

    }

    </mx:Style>
    <mx:Button label="Start" />
</mx:Application>

如果要移动按钮,请使用left或x属性:

<?xml version="1.0"?>
<!-- styles/TimeFormat.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="red">

    <mx:Style>
    Button
    {
        marginLeft: 500px;

    }

    </mx:Style>
    <mx:Button label="Start" />
</mx:Application>

我试着用不同的风格来做,效果很好:

<mx:Button label="Start" left="500" />


按钮
{
左:500px;
顶部:20px;
}

我试着用不同的风格来做,效果很好:

<mx:Button label="Start" left="500" />


按钮
{
左:500px;
顶部:20px;
}
您可以添加的备选方案
您可以添加的备选方案

我可以在样式中写入此内容吗?但是左侧和右侧在样式中不起作用我可以在样式中写入此内容吗?但是左侧和右侧在样式中不起作用