小编Ame*_*mey的帖子

如何在Swift中调用Objective C UIView的initWithFrame

这就是我在Obejective C中调用UIView DraggableViewBackground的方法,它工作得很好但是如何在Swift中做同样的事情

 DraggableViewBackground *draggableBackgroundforurl = [[DraggableViewBackground alloc]initWithFrame:self.view.frame];
Run Code Online (Sandbox Code Playgroud)

我的DraggableViewBackground在Objective C中,我希望在单击按钮时将其设置为子视图

uiview ios swift

6
推荐指数
2
解决办法
7087
查看次数

HTML表格列重叠

我的按钮被创建为相应行的每列.但它们相互重叠,我只能看到最后创建的按钮.我的.css存在一些问题,但我无法弄清楚是什么.我是HTML新手,CSS非常感谢您的帮助

的test.html

<html>
<link href="button_style.css" rel="stylesheet" type="text/css" />

<body>
    <table align="center" id="scroll_tbl">
        <tr>
            <td style="background-color: rgba(0, 0, 0, 0.00); padding-top:5px; padding-bottom:5px; padding-right: 5px; padding-right:20px;">
                <a href='javascript:prevClick()'><img src="img/arrow_left.png" class="arrow" border="0" />&nbsp;Previous</a>
            </td>
            <td style="background-color: rgba(0, 0, 0, 0.00); padding-top:5px; padding-bottom:5px; padding-right: 5px; padding-left:20px;">
                <a href='javascript:nextClick()'>Next&nbsp;<img src="img/arrow_right.png" class="arrow" border="0" /></a>
            </td>
        </tr>
        <tr>
            <td style="background-color: rgba(0, 0, 0, 0.00); padding-top:5px; padding-bottom:5px; padding-right: 5px; padding-right:20px;">
                <a href="#" class="button"><span>Follow</span></a>
            </td>
            <td style="background-color: rgba(0, 0, 0, 0.00); padding-top:5px; padding-bottom:5px; padding-right: 5px; padding-left:20px;">
                <a href="#" class="button"><span>Follow</span></a> …
Run Code Online (Sandbox Code Playgroud)

html css

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

标签 统计

css ×1

html ×1

ios ×1

swift ×1

uiview ×1